Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prisma/blog-backend-rest-api-nestjs-prisma
A simple backend REST API for a blog built using NestJS, Prisma, PostgreSQL and Swagger.
https://github.com/prisma/blog-backend-rest-api-nestjs-prisma
nestjs postgres postgresql prisma rest-api swagger typescript
Last synced: 2 days ago
JSON representation
A simple backend REST API for a blog built using NestJS, Prisma, PostgreSQL and Swagger.
- Host: GitHub
- URL: https://github.com/prisma/blog-backend-rest-api-nestjs-prisma
- Owner: prisma
- Created: 2022-05-30T21:05:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-13T08:25:42.000Z (over 1 year ago)
- Last Synced: 2023-07-13T09:29:49.726Z (over 1 year ago)
- Topics: nestjs, postgres, postgresql, prisma, rest-api, swagger, typescript
- Language: TypeScript
- Homepage: https://www.prisma.io/blog/nestjs-prisma-rest-api-7D056s1BmOL0
- Size: 211 KB
- Stars: 91
- Watchers: 4
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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](https://www.prisma.io/docs/concepts/database-connectors/postgresql#connection-details) 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