michaelradu / ActixWebTaskService

A simple task management web service built with Actix Web and AWS DynamoDB.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ActixWeb Task Service

Stargazers Forks Contributors Issues MIT License

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!

Quick Start Guide

  1. Clone the repo
git clone https://github.com/michaelradu/ActixWebTaskService.git
  1. Add your aws_config to your environment variables
  2. Build the project
cargo build
  1. Run the project
sudo cargo run
  1. Test its functionality with tools such as postman

Usage

  1. 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"
}
  1. Get tasks
GET http://127.0.0.1/task/taskid 
  1. Start a task
PUT http://127.0.0.1/task/taskid/start
  1. Pause a task
PUT http://127.0.0.1/task/taskid/pause
  1. Complete a task
PUT http://127.0.0.1/task/taskid/complete

with the following body

{
    "result_file": "your_file"
}
  1. Fail a task
PUT http://127.0.0.1/task/taskid/fail

and more...

Licence

GPLv3 © Michael Radu

About

A simple task management web service built with Actix Web and AWS DynamoDB.

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%