This is a simple task management web service built with Actix Web and AWS DynamoDB.
Check out the documentation below to get started.
Feature request? Check the past discussions to see if it has been brought up previously. Otherwise, feel free to start a new discussion thread. All ideas are welcomed!
- Clone the repo
git clone https://github.com/michaelradu/ActixWebTaskService.git
- Add your aws_config to your environment variables
- Build the project
cargo build
- Run the project
sudo cargo run
- Test its functionality with tools such as
postman
- Create tasks
POST http://127.0.0.1/task
with the following body
{
"user_id": "randomuuid",
"task_type": "Your_task_type",
"source_file": "your_file"
}
- Get tasks
GET http://127.0.0.1/task/taskid
- Start a task
PUT http://127.0.0.1/task/taskid/start
- Pause a task
PUT http://127.0.0.1/task/taskid/pause
- Complete a task
PUT http://127.0.0.1/task/taskid/complete
with the following body
{
"result_file": "your_file"
}
- Fail a task
PUT http://127.0.0.1/task/taskid/fail
and more...