Sync LMS backend source

This commit is contained in:
2026-07-07 16:09:12 +09:00
commit 5a2ecd0fea
126 changed files with 22959 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
# lms-be
Nest.js backend API for the LMS Electron frontend.
## Local development
```bash
npm install
cp .env.example .env
npm run prisma:generate
npm run start:dev
```
The API listens on `http://localhost:4400`.
- `GET /health`
- `GET /health/db`
- `GET /api`
## Database
Local PostgreSQL is included in Docker Compose.
```bash
docker compose up -d postgres
npm run prisma:migrate
npm run start:dev
```
For a separated database server, set `DATABASE_URL` to the remote PostgreSQL host:
```bash
DATABASE_URL=postgresql://USER:PASSWORD@DB_HOST:5432/DB_NAME?schema=public
```
## Docker
```bash
docker compose up --build
```