Skip to content

ashish-gupta-99/auth-post-curd

Repository files navigation

Description

Nestjs framework based jwt authentication.

Swagger URL

http://localhost:3000/api

command to generate SECRET_KEY

node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"

docker setup for running locally running mongodb

# pull
docker pull mongo

#run
docker run --name mongo-container -p 27017:27017 -d mongo

command to generate controller

npx @nestjs/cli g co controllers/<controller_name>

command to generate service

npx @nestjs/cli g s services/<service_name>

Installation

create and .env file at root dir of project, copy all the contents of sample.env and paste into the .env.

# to install all nessesory dependency
npm install

Running the app

# development
npm run start
# watch mode
npm run start:dev
# production mode
npm run start:prod

About

created for ref

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published