taskey

module
v0.0.0-...-1716c1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2022 License: GPL-3.0

README

taskey

Go CodeQL DeepSource DeepSource

PWP SPRING 2022

Project name: taskey

Group information

Remember to include all required documentation and HOWTOs, including how to create and populate the database, how to run and test the API, the url to the entrypoint and instructions on how to setup and run the client

Running the server

If you have Go installed locally, you can simply run go run ./cmd/taskey/ at the root of the repository to start the server.

You must have a running PostgreSQL server on your localhost, e.g. in a Docker container.

You may also build a Docker image using docker image build -t taskey . and run everything (requires docker-compose) by doing docker-compose up -d.

Running tests

If you have Go installed locally, you can simply run go test -v ./... at the root of the repository to execute all tests.

Deployment

Service is deployed with Heroku.

You can view the API documentation at /api/v1/.

taskeyd

taskeyd is the daemon that will run on a machine intended for executing tasks. It is a small program that downloads the defined schedule and tasks from the server, executes them based on the schedule and uploads results back to the server.

Below is a small demo of how it looks in action:

asciicast

Directories

Path Synopsis
cmd
taskey command
taskey-cli command
taskeyd command
internal
api
auth/mock
Package mock_auth is a generated GoMock package.
Package mock_auth is a generated GoMock package.
db
db/mock
Package mock_db is a generated GoMock package.
Package mock_db is a generated GoMock package.
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL