Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kei-k23/nestjs-blog-api
This is Nestjs Blog API with user authentication with JWT token. User can create, delete and update the blog.
https://github.com/kei-k23/nestjs-blog-api
docker nestjs postgresl swagger-ui
Last synced: 8 days ago
JSON representation
This is Nestjs Blog API with user authentication with JWT token. User can create, delete and update the blog.
- Host: GitHub
- URL: https://github.com/kei-k23/nestjs-blog-api
- Owner: Kei-K23
- Created: 2024-02-27T13:22:39.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-27T13:42:29.000Z (12 months ago)
- Last Synced: 2024-12-04T16:39:33.057Z (2 months ago)
- Topics: docker, nestjs, postgresl, swagger-ui
- Language: TypeScript
- Homepage: https://nestjs-blog-api-rpbn.onrender.com/api
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest# Nestjs Blog API
This is a simple API for creating blog posts including user authentication with JWT token. The API is documented with Swagger.
## Tech stack
- NestJS
- PostgreSQL
- Prisma
- Swagger
- Docker## Usage
- Close the repo:
```bash
gh repo clone Kei-K23/nestjs-blog-api
```- Navigate to the cloned directory:
```bash
cd nestjs-blog-api
```- Install dependencies:
```bash
npm install
```- Start the PostgreSQL database with Docker:
```bash
docker-compose up -d
```- Apply database migrations:
```bash
npx prisma migrate dev
```- Start the project locally:
```bash
npm run start:dev
```**Make sure to change `.env` variables with your own ones.**