Skip to content

fscherf/spaeti

Repository files navigation

Spaeti

license MIT Python Version Latest Version

Spaeti is a re-implementation of prepaid-mate.

Initial Setup

  1. Setup docker on your system.
$ sudo apt install docker.io docker-compose
$ sudo adduser $USER docker
  1. Create an environment file from the example environment file and start the app
$ cp example.env .env
$ docker-compose up
  1. While the app is running, setup a database and a admin user
$ docker-compose exec app ./docker-entrypoint.sh migrate
$ docker-compose exec app ./docker-entrypoint.sh createsuperuser

Start the App

$ docker-compose up

All operational configuration is done in .env.

Spaeti stores all data in data/, which can be reset by running sudo rm data -rf.

Run Tests

Tests

$ docker-compose run playwright tox

Linter

$ docker-compose run playwright tox -e lint

Deployment

Before deployment, make sure you changed all sensible configuration in .env.

$ docker-compose up -d