This is a simple login and registration application built with Node.js, Express, and MongoDB. The application allows users to register an account and login using their credentials. The user's information is stored in a MongoDB database, and the passwords are hashed using the crypto library.
- User registration
- User login
- Password hashing
- User sessions
- MongoDB integration
To get started, you need to have Node.js and MongoDB installed on your machine.
- Clone the repository to your local machine. git clone https://github.com/Mouados-byte/Login.git
Copy code
- Install the dependencies by running the following command in the project's root directory. npm install
Copy code
-
Create a
.env
file in the root directory of your project and add the following environment variablesMONGOOSE_NAME=YOUR_MONGO_DB_USERNAME MONGOOSE_PASSWORD=YOUR_MONGO_DB_PASSWORD
-
Start the application by running the following command. npm start
Copy code
- Open your browser and navigate to
http://localhost:3000/
. You should see the login page.
- Node.js
- Express
- MongoDB
- crypto
- express-session
- dotenv
- Imam Mouad - Initial work - Mouados-byte