Giter Club home page Giter Club logo

branchcode_99_team1's Introduction

MERN Stack Application with bcrypt Authentication

This is a simple MERN stack application that demonstrates user registration and login functionality with bcrypt for password hashing.

Table of Contents

Technologies Used

  • MongoDB: NoSQL database for storing user information.
  • Express.js: Web application framework for Node.js, used for server-side logic.
  • React.js: JavaScript library for building user interfaces.
  • Node.js: JavaScript runtime environment for running server-side code.
  • bcrypt: Library for hashing passwords securely.

Features

  • User Registration: Allows users to create a new account with a unique username and securely hashed password using bcrypt.
  • User Login: Allows registered users to login with their username and password, with bcrypt used to verify the password.
  • Protected Routes: Certain routes are protected and require authentication. Users must be logged in to access these routes.

Usage

  1. Register a New User:
  • Navigate to the registration page and enter a unique username and password.
  • The password is hashed securely using bcrypt before being stored in the database.
  1. Login:
  • After registering, users can log in with their username and password.
  • The password entered during login is hashed and compared with the hashed password stored in the database using bcrypt for authentication.
  • Used proxy in package.json to overpass the CORS policy.
  1. Access Protected Routes:
  • Certain routes, such as user profile or dashboard, may require authentication.
  • Users must be logged in to access these routes, otherwise, they will be redirected to the login page.

Contributing

Contributions are welcome! If you have any ideas, improvements, or issues, feel free to open a pull request or raise an issue.

#ScreenShots LOGIN PAGE

TRANSPORT IITBBS - Google Chrome 3_31_2024 21_08_35

REGISTRATION PAGE

TRANSPORT IITBBS - Google Chrome 3_31_2024 21_08_47

branchcode_99_team1's People

Contributors

nisarg-p27 avatar deekshita008 avatar v-asvitha avatar ranchi-raj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.