nestjs-auth/README.md

45 lines
752 B
Markdown
Raw Permalink Normal View History

2023-11-01 23:39:57 +00:00
## Description
2023-11-01 23:50:44 +00:00
My NestJS implementation of a basic JWT authentication/authorization REST api, with user sign up / sign in, and a dockerized postgres database
2023-11-01 23:39:57 +00:00
## Installation
```bash
$ npm install
```
## Running the app
2023-11-01 23:47:20 +00:00
The Postgres database is dockerized, and the image must be installed:
```bash
docker compose up dev-db -d
```
Once the docker container with the database is runnig, the database can be removed, brought up again and migrated in a single command:
```bash
npm run prisma:dev:restart
```
The nestjs backend itself is run using the following commands:
2023-11-01 23:39:57 +00:00
```bash
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
```
## Test
2023-11-01 23:47:20 +00:00
TBD
2023-11-01 23:39:57 +00:00
## License
Nest is [MIT licensed](LICENSE).