Imaryan08 / passport_login

Login using passport

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# 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

Installation

  1. Clone the repository:

    git clone https://github.com/Imaryan08/passport_login.git
  2. Navigate to the project directory:

    cd passport_login
  3. Install the dependencies:

    npm install
  4. 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.
  5. Start the application:

    npm start or npm run dev
  6. Open your web browser and visit http://localhost:5000 to access the application.

Preview

Here are some screenshots of the application:

  • Home Page: Home Page

  • Register Page: Register Page

  • Login Page: Login Page

  • Dashboard (if logged in): Dashboard Page

Contributions

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.

License

This project is licensed under the MIT License.

Contact

If you have any questions or want to reach out regarding this project, you can contact me via email at imaryan08@gmail.com.


About

Login using passport


Languages

Language:JavaScript 50.8%Language:EJS 49.2%