This User Management Service is a Node.js application that allows users to register, login, and manage their profiles using MongoDB as the database.
- User Registration
- User Login
- Update User Profile
- Secure Authentication with JWT
- MongoDB Database Integration
- Clone the repository
- Install dependencies using
npm install
- Set up a MongoDB database and configure the connection in the
.env
file - Start the application using
npm start
- Register a new user:
POST /api/users/register
- Login with existing user:
POST /api/users/login
- Update user profile:
PUT /api/users/:username
Make sure to set the following environment variables in a .env
file:
PORT=3000
MONGODB_URI="mongodb://your_username:your_password@localhost:27017/your_database"
SECRET_KEY=your_secret_key
- Fork the repository
- Create a new branch (
git checkout -b feature
) - Make your changes
- Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature
) - Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Coursera. IBM. IBM Watson. WatsonX. ChatGPT. GPT-3. Miguel Angel Rodriguez.