A RESTful API for managing recipes, built with NestJS and Prisma.
-
Install dependencies
npm install
-
Set up environment variables
Copy the example environment file and adjust values as needed:
cp .env.example .env
-
Start required services with Docker Compose
This will start the database and any other required services in the background:
docker compose up -d
-
Generate Prisma client
npx prisma generate
-
Apply database schema
Push the Prisma schema to your database:
npx prisma db push
-
Development mode
npm run start
-
Watch mode (auto-reload on changes)
npm run start:dev
-
Production mode
npm run start:prod
Once running, access the Swagger API documentation at: http://localhost:3000/api
-
Unit tests
npm run test -
End-to-end (e2e) tests
npm run test:e2e
-
Test coverage
npm run test:cov