Files
lms-be/README.md
2026-07-07 16:09:12 +09:00

633 B

lms-be

Nest.js backend API for the LMS Electron frontend.

Local development

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.

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:

DATABASE_URL=postgresql://USER:PASSWORD@DB_HOST:5432/DB_NAME?schema=public

Docker

docker compose up --build