Skip to content

alessandrror/register-login-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Application

Description

This register/login application was builded using JavaScript as a language with NodeJS as an execution environment and its framework ExpressJS.

Requirements

As requirements you must have installed Node with NPM. Also mongo is a required to create the database with this configuration.

Configuration

To configure the project you can find everything in the file called config.js at the src folder.

You must add two variables. The first variable is the secret key to use in the bcrypt method called TOKEN_SECRET_KEY to encrypt the password and the second variable is the url to connect data base called URL_DB_CONNECTION. Don't forget to install mongo and start the connection to create automatically the database.

The current port is set to 3000 but you can change it in the config.js file just look for the variable SERVER_PORT.

Installation

Commands:

To install the package.json with all the dependencies.

npm install

To initialize the server

npm run dev

Dependencies

Name Version
express 4.18.2
mongoose 7.4.2
morgan 1.10.0
jsonwebtoken 9.0.1
cookie-parser 1.4.6
bcryptjs 2.4.3

About

Backend application created with JavaScript powered by NodeJS using Express.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published