This project is a RESTful API for Order Management built using NestJS, utilizing Prisma as the ORM for database interactions, and PostgreSQL as the database. It provides comprehensive endpoints for managing orders, menus, carts, and vouchers.
-
Clone the repository
git clone https://github.com/Mochrks/crud-nestjs-api.git cd crud-nestjs-api
-
Install dependencies
npm install
-
Configure Database
- Update
.env
file with your PostgreSQL credentials:
DATABASE_URL="postgresql://your_username:your_password@localhost:5432/your_database"
- Update
-
Run Prisma Migrations
npx prisma migrate dev --name init
-
Run the application
npm start