This project is a backend application built with NestJS, PostgreSQL (running in Docker), and Prisma for ORM. This README provides step-by-step instructions for setting up the development environment, including running PostgreSQL in Docker, setting up the environment variables, and configuring Prisma for database interactions and migrations.
Ensure the following are installed on your machine:
- Docker
- Node.js (preferably LTS version)
- Prisma CLI
- You can install Prisma CLI globally with:
npm install -g prisma
- You can install Prisma CLI globally with:
Clone the project repository:
git clone https://github.com/simplecodez/Digital_Vision-Assessment.git
cd Digital_Vision-Assessment
npm installDATABASE_URL=
JWT_SECRET=
JWT_EXPIRES_IN=
docker-compose up -dnpx prisma migrate dev --name initnpm run start:devThen enter "localhost:2201/graphql" to test out the graphql endpoints