Skip to content

Repository files navigation

Simple Nestjs-Prisma project

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.

Prerequisites

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

Project Setup

1. Clone the Repository

Clone the project repository:

git clone https://github.com/simplecodez/Digital_Vision-Assessment.git
cd Digital_Vision-Assessment

2. Install npm packages

npm install

3. Add the Environment variables

DATABASE_URL=
JWT_SECRET=
JWT_EXPIRES_IN=

4. Run Postgres on docker

docker-compose up -d

5. Run Prisma migration

npx prisma migrate dev --name init

6. Running and Testing Endpoints

npm run start:dev

Then enter "localhost:2201/graphql" to test out the graphql endpoints

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages