Skip to content

MateusAbdala/handle-login-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

handle-login-rest-api

Rest API to be used as an authentication service. It uses JWT (JSON Web Tokens) to provide access tokens and bcrypt for password encryption.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

see package.json

You can define on which port you want this API running at (default if not set: 8080):

export NODE_PORT=80 # Port 80 is recommended to avoid network restrictions from consumers

Production Deployment

When deploying on a production environment, don't forget to set the NODE_ENV environment variable:

export NODE_ENV=production # Default if not set 'development'

Endpoints

  • /api/signup
  • /api/authenticate
  • /api/users
  • /api/token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors