Skip to content

In MERN stack development, the login and registration system typically refers to the implementation of user authentication and authorization functionalities using MongoDB, Express.js, React.js, and Node.js. Here's a brief overview of how it's typically done.

Notifications You must be signed in to change notification settings

BekCodingAddict/Login-and-Registration-using-MERN-Stack-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login-and-Registration-using-MERN-Stack

About:

  • In MERN stack development, the login and registration system typically refers to the implementation of user authentication and authorization functionalities using MongoDB, Express.js, React.js, and Node.js. Here's a brief overview of how it's typically done:

  • MongoDB: MongoDB is used as the database to store user information such as usernames, passwords (usually hashed for security), email addresses, and any other relevant data.

  • Express.js: Express.js is used to create the server-side logic and APIs (Application Programming Interfaces) for handling user authentication and registration requests. It's common to use libraries like Passport.js for implementing authentication strategies such as local authentication (using username and password) or OAuth (for social media authentication).

  • React.js: React.js is used to create the user interface (UI) for the login and registration forms. These forms typically collect user input such as username, email, and password and send requests to the server for authentication or registration. Node.js: Node.js is used as the server runtime environment to handle HTTP requests from the frontend (React.js) and interact with the database (MongoDB). It runs the Express.js application and serves as the backend logic for user authentication and registration.

  • Tools:

    • Front-End:
      • Reduxjs/toolkit
      • Antd
      • Axios
      • BcryptJS
      • JSONwebToken
      • NodeMailer
      • React-Redux
      • React-Router-DOM
    • Back-End:
      • React ReduxJS/Toolkit
      • BcryptJS
      • Dotenv
      • JSONwebToken
      • Mongoose
      • Nodemon

How to run ?

  • 1. Terminal-> npm i
    • nodemon server
  • 2. Terminal->cd client -> npm i
    • npm start

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

In MERN stack development, the login and registration system typically refers to the implementation of user authentication and authorization functionalities using MongoDB, Express.js, React.js, and Node.js. Here's a brief overview of how it's typically done.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published