User_AuthFlow is a user authentication system built using Node.js, Express, MongoDB, and EJS. It provides functionalities for user signup, signin, password reset, and authentication using JWT tokens.
- Signup: Users can create a new account by providing their email and password.
- Signin: Registered users can sign in with their email and password.
- Password Reset: Users can request a password reset if they forget their password.
- Authentication: JWT tokens are used to authenticate users and provide secure access to protected routes.
- Node.js: JavaScript runtime environment for server-side logic.
- Express: Web application framework for Node.js to build robust APIs and web applications.
- MongoDB: NoSQL database for storing user information securely.
- EJS: Embedded JavaScript templates for rendering dynamic HTML pages.
-
Clone the repository:
git clone https://github.com/Dwarkesh-99/User_AuthFlow.git
-
Navigate to the project directory:
cd user_authflow -
Install dependencies:
npm install
-
Set up environment variables:
Create a
.envfile in the root directory and add the following environment variables:PORT=3000 MONGODB_URI=mongodb://localhost/user_authflow JWT_SECRET=your_secret_key -
Start the server:
npm start
-
Open your browser and navigate to
http://localhost:3000to access the application.
- Sign up for a new account by providing your email and password.
- Sign in with your registered email and password.
- Reset your password if you forget it.
- Access protected routes by authenticating with JWT tokens.
Feel free to customize the README file according to your project's specific requirements and additional features!