MarkVink / blog-backend-rest-api-nestjs-prisma

A simple backend REST API for a blog built using NestJS, Prisma, PostgreSQL and Swagger.

Home Page:https://www.prisma.io/blog/nestjs-prisma-rest-api-7D056s1BmOL0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blog-Backend-REST-API-NestJS-Prisma

A simple backend REST API for a blog built using NestJS, Prisma, PostgreSQL and Swagger.

Installation

  1. Install dependencies: npm install
  2. 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. In this case, you will need to change the DATABASE_URL inside the .env file with a valid PostgreSQL connection string for your database.
  3. Apply database migrations: npx prisma migrate dev
  4. Start the project: npm run start:dev
  5. Access the project at http://localhost:3000/api

About

A simple backend REST API for a blog built using NestJS, Prisma, PostgreSQL and Swagger.

https://www.prisma.io/blog/nestjs-prisma-rest-api-7D056s1BmOL0


Languages

Language:TypeScript 93.1%Language:JavaScript 6.3%Language:Shell 0.6%