Skip to content

shashankrxj/Signin-Signup-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signin-Signup Template

This project is a basic signin/signup website template built using Node.js, Express, EJS, and MongoDB. It provides a simple user authentication system with integrated JSON Web Tokens (JWT) for session management. This template can be used as a starting point for building user authentication features in your own projects.

Features

• User signup and login functionality.
• Password encryption using bcrypt.
• Session management with JSON Web Tokens (JWT).
• Integration with MongoDB for data storage.

Getting Started

Prerequisites
• Node.js installed on your machine.
• MongoDB installed and running locally or a MongoDB Atlas account for cloud-based database storage.

Initialization

  1. Clone the repository
 git clone <repository-url>
  1. Install dependencies
 npm install
  1. Set environment variables
    • Create a .env file in the root directory.
    • Add the following environment variables:
  MONGO_URI=<your-mongodb-uri>
  SECRET_KEY=<your-secret-key>

Replace with the URI of your MongoDB database, and with a secret key for JWT encryption.

  1. Start the server
 npm start
 OR
 nodemon server.js

Open your web browser and navigate to http://localhost:4000 to access the signin/signup website.

About

This project is a Signin-Signup user authentication template built using Node.js, Express, EJS, MongoDB and JSON Web Tokens (JWT). You can check out the Website for the view.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors