Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.8 KB

README.md

File metadata and controls

52 lines (40 loc) · 1.8 KB

API NodeJS with MongoDB and JWT Token

This project was developed with the purpose of facilitating our journey, when we need to make a system of authenticity and we do not know where to start. Here is an expensive and straightforward example of how to set up an authentication API with JWT Token and NodeJS

Getting Started

# clone it
git clone https://github.com/caioorg/node-jwt.git
cd node-jwt

# Make it your own
rm -rf .git && git init && npm init

# Install dependencies
yarn install

# Start project development
yarn run dev

# If you want to start production
yarn run build

Check Routes

If you want to validate the route operation by POSTMAN:

POST - Register User -> /auth/register
POST - Authenticate User ->  /auth/login
GET - Validate Token -> /checking

Examples Request

This link was made available with the documentation, how to make the requests via POSTMAN.