Welcome !, This Node.js application provides a robust backend solution for user authentication, built with Express and MongoDB. If you're developing a web application, this backend offers secure user authentication features to ensure your users' data remains protected.
- User Registration: Allow users to sign up for an account with a unique username and password.
- User Login: Enable users to securely log in to their accounts using their credentials.
- Password Encryption: Implement secure password encryption to protect user data.
- Rate Limiting: Reduces the number of times a particular user can attempt to log in.
Before running the application, ensure you have the following prerequisites:
-
Clone the repository:
git clone https://github.com/Bishopukpai/YT-Nodejs-auth-system.git
-
Navigate to the project directory:
cd YT-Nodejs-auth-system
-
Install dependencies:
npm install
-
Create a .env file in the root directory and add the following variables:
MONGODB_URI=your-mongodb-uri
Replace "your-mongodb-uri"
with your MongoDB connection URI.
-
Start the server:
npm start
Once the server is running, you can interact with the API using HTTP requests. Here are some example endpoints:
- POST http://localhost:9090/user/signup: Register a new user account.
- POST http://localhost:9090/user/signin: Log in to an existing user account.
Note: Refer to the source code for additional endpoints and usage details.
Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests to improve this project.
This project is licensed under the MIT License.