Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User-Authentication-in-NodeJs

This project demonstrates a simple user authentication system built using Node.js with the Express framework and MongoDB for data storage. It provides endpoints for user registration (sign-up) and user authentication (sign-in).

Features

  • User registration with username and password.
  • Password hashing using bcrypt for secure storage.
  • User authentication with username and password.
  • JSON Web Token (JWT) based user authentication.
  • Serving static HTML forms for sign-up and sign-in.
  • Express server with MongoDB as the database.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js installed on your machine.
  • MongoDB installed and running on your system.

Getting started

  • Install the required dependencies using npm install
  • Start the server using node app.js

Usage

Configuration

Database configuration: You can customize the MongoDB connection string.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages