- Linux
- Docker
- Python 3.11
- Pip (Package manager from Python)
- Make
To install the base: make install
To install the dev requirements: make install-dev
To run: make dev
To run all specs: make test
- Authentication to server;
- Show client's online;
- Show all client's with your last connection datetime;
Starting with models, the model of task are dynamic, doesn't have a specify validation, required just a name and optional array of string to args.
Now, to host model, have just one field that is required (ip_address
), and he is filled when call the route of health-check.
In X time of loop in your client, keeps calling the route of "/client/health-check" to put your presence.
In Y time of loop in your client, also keeps calling the route of "/client/current-task" to get some task if there is.
- "X time" is the var
CLIENT_HEALTH_CHECK_LOOP_TIME
in.env
file. (This configuration is necessary to determine if the client is online or not based on range of time.) - "Y time" is not required to configure, because this case stay just in your client.
You can add and remove a task from a specified client, and see all clients online based on CLIENT_HEALTH_CHECK_LOOP_TIME
.
The authorization is unique, your put your username as USER
and your password as PASS
in .env
file, both username and password should is sha256
.
After this, use the route /auth/gen
to generate your token, with this, the token have 10min until expire.