An open API service indexing awesome lists of open source software.

https://github.com/azaz9026/deploy_mern__app1

This repository provides a fully functional login and signup system built with the MERN stack (MongoDB, Express, React, Node.js). The application demonstrates how to implement user authentication and management with best practices, including secure password handling and session management.
https://github.com/azaz9026/deploy_mern__app1

api-rest authentication expressjs javascript jsonwebtoken mongodb moongose reactjs router-dom tostify

Last synced: 7 months ago
JSON representation

This repository provides a fully functional login and signup system built with the MERN stack (MongoDB, Express, React, Node.js). The application demonstrates how to implement user authentication and management with best practices, including secure password handling and session management.

Awesome Lists containing this project

README

          

# Complete Login/Signup MERN Stack

This repository provides a fully functional login and signup system built with the MERN stack (MongoDB, Express, React, Node.js). The application demonstrates how to implement user authentication and management with best practices, including secure password handling and session management.

***Features***

User Registration: Allows new users to sign up with email and password.

User Login: Authenticates users with their credentials and establishes a session.

JWT Authentication: Uses JSON Web Tokens for secure API access.

Password Hashing: Stores passwords securely using bcrypt.

User Profile Management: Allows users to update their profile information.

Responsive UI: Built with React for a seamless user experience on various devices.

Error Handling: Comprehensive error messages for user feedback during login/signup.

***Technologies Used***

MongoDB: NoSQL database for storing user data.

Express: Web framework for Node.js, handling server-side logic.

React: Frontend library for building user interfaces.

Node.js: JavaScript runtime for server-side development.

bcrypt: Library for hashing passwords.

jsonwebtoken: Library for handling JSON Web Tokens.

***Getting Started***

***Prerequisites***

Node.js and npm installed on your machine.

MongoDB server running (either locally or using a cloud service).

***Installation***

Clone the repository:

git clone https://github.com/yourusername/mern-login-signup.git

***cd server***

npm install

***Install client dependencies:***

***cd client***

npm install

Configure environment variables in .env file (refer to .env.example for required variables).

***Start the server:***

cd client
npm start

***Usage***

Navigate to http://localhost:3000 to access the application.

Use the signup form to create a new account.

Log in with your credentials to access protected routes.

***Contributing***

Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.

***License***

This project is licensed under the MIT License.