A simple Flask REST API for managing tasks.
# Install Flask
pip install -r requirements.txt
# Run the app
python app.pyGET /tasks- Get all tasksPOST /tasks- Create new task
curl http://localhost:5000/taskscurl -X POST http://localhost:5000/tasks \
-H "Content-Type: application/json" \
-d '{"title": "Buy groceries", "description": "Milk, bread, eggs"}'{
"message": "Task created successfully",
"task": {
"id": 1,
"title": "Buy groceries",
"description": "Milk, bread, eggs",
"completed": false,
"created_at": "2025-08-01 12:30:00"
}
}# Build image
docker build -t task-manager .
# Run container
docker run -p 5000:5000 task-managerapp.py- Main Flask application (single file!)requirements.txt- DependenciesDockerfile- Container setupREADME.md- This documentation# TaskManagerAPI