This project is a secure login and register page built using Node.js, MongoDB.
- 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.
- Node.js installed on your machine.
- MongoDB installed and running locally or accessible via a remote connection.
-
Clone the repository: git clone https://github.com/your-username/login_register.git
-
Install dependencies:
cd secure-login
npm install -
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
- Start the server:
npm start
- 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.
Contributions are welcome! Feel free to open an issue or submit a pull request for any improvements or bug fixes.
- Thanks to the Node.js and MongoDB communities for their excellent documentation and resources.