# Passport Login
Passport Login is a web application that demonstrates user authentication using Passport.js. It includes routes for registration, login, and a protected dashboard.
## Features
- User registration with validation
- User login with authentication
- Session-based authentication using Passport.js
- Protected dashboard route for authenticated users
## Technologies Used
- Node.js
- Express.js
- Passport.js
- MongoDB
- EJS (Embedded JavaScript) templating engine
-
Clone the repository:
git clone https://github.com/Imaryan08/passport_login.git
-
Navigate to the project directory:
cd passport_login
-
Install the dependencies:
npm install
-
Set up the MongoDB connection:
- Create a MongoDB Atlas account or set up a local MongoDB server.
- Update the MongoDB connection URL in
config/database.js
with your own connection details.
-
Start the application:
npm start or npm run dev
-
Open your web browser and visit
http://localhost:5000
to access the application.
Here are some screenshots of the application:
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or create a pull request.
This project is licensed under the MIT License.
If you have any questions or want to reach out regarding this project, you can contact me via email at imaryan08@gmail.com.