https://github.com/linj1k/nestjs-basic-api
NestJS - API with a basic authentication system, JWT Token and a ping request that answers pong in json.
https://github.com/linj1k/nestjs-basic-api
api jwt-token nestjs nestjs-backend
Last synced: 3 months ago
JSON representation
NestJS - API with a basic authentication system, JWT Token and a ping request that answers pong in json.
- Host: GitHub
- URL: https://github.com/linj1k/nestjs-basic-api
- Owner: Linj1k
- Created: 2024-02-13T00:39:10.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-13T20:13:30.000Z (over 1 year ago)
- Last Synced: 2025-01-13T19:41:36.369Z (5 months ago)
- Topics: api, jwt-token, nestjs, nestjs-backend
- Language: TypeScript
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## NestJS - Basic API
NestJS - API with a basic authentication system, JWT Token and a ping request that answers pong in json.# .env example :
```
JWT_SECRET="8efb720c4c2c17ac7cc95a2b2948bbf5ce978d4be6288a6b6b91b5cae67b59b385e1e85bfab5ffdf693155b9049f008a03f13c862c6953ba7a2dd67ecc7543c9"
```> http://localhost:3000/auth/login
> ```
> Body: {"username": "maria", "password": "guess"}
> ```> http://localhost:3000/auth/profile
>
> http://localhost:3000/api/v1/ping
> ```
> Headers:
> Authorization: Bearer {token}
> ```