mirror of
https://github.com/t3xhno/nestjs-auth.git
synced 2024-12-22 07:57:27 +00:00
fec2416e7f
Added MIT License |
||
---|---|---|
prisma | ||
src | ||
test | ||
.env.example | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc | ||
docker-compose.yaml | ||
LICENSE.md | ||
nest-cli.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.build.json | ||
tsconfig.json |
Description
My NestJS implementation of a basic JWT authentication/authorization REST api, with user sign up / sign in, and a dockerized postgres database
Installation
$ npm install
Running the app
The Postgres database is dockerized, and the image must be installed:
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:
npm run prisma:dev:restart
The nestjs backend itself is run using the following commands:
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Test
TBD
License
Nest is MIT licensed.