User Authentication System is a simple project built with the MERN stack, featuring three major functionalities: User Registration, User Login, and Reset Password.
-
Create a new folder for the front-end application:
mkdir Front-End-App
-
Initialize a new Vite project:
npm init vite@latest
Enter your project name. Select React as the framework. Choose JavaScript as the language.
-
Navigate to the project folder:
cd Front-End-App
-
Install dependencies:
npm install npm install axios bootstrap npm install @fortawesome/react-fontawesome @fortawesome/free-solid-svg-icons npm install react-toastify
-
Start the client :
npm run dev
- Create a new folder for the server-side application:
cd server-End-App
-
Navigate to the project folder:
cd server-End-App
-
Install dependencies:
npm install npm install express mongoose cors nodemon cookie-parser bcrypt jsonwebtoken
-
Load the Nodemon for start the server:
Under the package.json , go to "scripts" , fill the "start" as "nodemon index.js"
-
Start the server:
npm start
-
Create models folder for creating the database schema
Use the User.js for databse schema