Skip to content

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.

Notifications You must be signed in to change notification settings

caioorg/node-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published