This microservice handles user registration, login, deletion, and listing. It is developed using Flask and SQLite for simplicity and lightweight deployment.
- Register new users
- Login with username and password
- Delete a user by username
- List all registered users
- URL:
/users/register
- Method:
POST
- Request Body:
{
"username": "admin",
"password": "root123"
}
- URL:
/users/login
- Method:
POST
- Request Body:
{
"username": "admin",
"password": "root123"
}
- URL:
/users/<username>
- Method:
DELETE
- URL:
/users
- Method:
GET
- Python 3.9
- Flask
- Flask-SQLAlchemy
- SQLite
docker build -t user-service:latest .
docker run -p 5000:5000 user-service:latest
kubectl apply -f k8s/deployment.yaml
kubectl apply -f k8s/service.yaml
- Username: `admin`
- Password: `root123`