https://github.com/hungds99/median-backend-rest-api
Median backend rest api
https://github.com/hungds99/median-backend-rest-api
api-rest backend nestjs postgresql prisma-orm
Last synced: about 2 months ago
JSON representation
Median backend rest api
- Host: GitHub
- URL: https://github.com/hungds99/median-backend-rest-api
- Owner: hungds99
- Created: 2024-04-17T07:54:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-17T04:26:13.000Z (about 1 year ago)
- Last Synced: 2025-06-28T01:41:59.058Z (about 1 year ago)
- Topics: api-rest, backend, nestjs, postgresql, prisma-orm
- Language: TypeScript
- Homepage:
- Size: 472 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
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