Skip to content

Latest commit

 

History

History
57 lines (30 loc) · 1.58 KB

README.md

File metadata and controls

57 lines (30 loc) · 1.58 KB

Secure Login and Register Page with Node.js and MongoDB

This project is a secure login and register page built using Node.js, MongoDB.

Features

  • User Authentication: Implementing server-side logic for user authentication to ensure secure access to the application.
  • Password Storage: User credentials are stored in the MongoDB database, ensuring data security.
  • MongoDB Integration: Utilizes MongoDB as the backend database for storing user information and credentials.
  • Schema Design: Well-structured schemas are designed for storing user data in the MongoDB database.

Prerequisites

  • Node.js installed on your machine.
  • MongoDB installed and running locally or accessible via a remote connection.

Installation

  1. Clone the repository: git clone https://github.com/your-username/login_register.git

  2. Install dependencies:
    cd secure-login
    npm install

  3. Set up environment variables:

    Create a .env file in the root directory and add the following variables:

PORT=3000 MONGODB_URI=your_mongodb_connection_string

  1. Start the server:

npm start

Usage

  • Access the application through a web browser by navigating to http://localhost:3000.
  • Register a new user account with a unique username and a strong password.
  • Log in with the registered credentials to access the secure content.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request for any improvements or bug fixes.

Acknowledgements

  • Thanks to the Node.js and MongoDB communities for their excellent documentation and resources.