NestJS Workshop Prisma Day 22 - Let's build a REST API with NestJS and Prisma!
Welcome to the code repository for the Prisma Day 2022 NestJS Workshop!
Resources
Get Started
Quickly get started with the appropriate lesson by cloning/checking out the relevant branch from this repo.
- Lesson 1:
git clone -b lesson-1-begin [email protected]:TasinIshmam/nestjs-workshop-prisma-day-22.git
- Lesson 2:
git clone -b lesson-2-begin [email protected]:TasinIshmam/nestjs-workshop-prisma-day-22.git
- Lesson 3:
git clone -b lesson-3-begin [email protected]:TasinIshmam/nestjs-workshop-prisma-day-22.git
- Lesson 4:
git clone -b lesson-4-begin [email protected]:TasinIshmam/nestjs-workshop-prisma-day-22.git
- Lesson 5:
git clone -b lesson-5-begin [email protected]:TasinIshmam/nestjs-workshop-prisma-day-22.git
Installation
- Install dependencies:
npm install
- Start a PostgreSQL database with docker using:
docker-compose up -d
.- If you have a local instance of PostgreSQL running, you can skip this step. However you will need to update the
DATABASE_URL
inside the.env
file with the correct environment variable.
- If you have a local instance of PostgreSQL running, you can skip this step. However you will need to update the
- Apply database migrations:
npx prisma migrate dev
- Start the project:
npm run start:dev
- Access the project at http://localhost:3000/api