caioorg / node-jwt

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:JavaScript 100.0%