SpacePaperwork is an Eve Echoes loot tracker + profit splitter + alliance/corp management tool tightly integrated with Discord.
- https://git-scm.com/book/en/v2/Getting-Started-Installing-Git/
- https://docs.docker.com/get-docker/
- https://docs.docker.com/compose/install/
git clone https://github.com/nigel-gott/spacepaperwork.git && cd spacepaperwork
docker-compose -f local.yml up --build
- Visit your new site running at http://localhost:8000/
- Trigger any crons that need to be run (import market data, sync discord roles
etc):
./docker_managepy.sh runcrons - Get an interactive python shell into goosetools
by
./docker_managepy.sh shell_plus - Run non-integration tests
./tests.sh - Run integration tests
./integration_test.sh - Watch filesystem for changes and re-run non-integration tests when something
changes
./test_watcher.sh - Run pre-commit checks
./pre_commit_checks.sh
-
git clone https://github.com/nigel-gott/spacepaperwork.git && cd spacepaperwork -
cp .env.local.example .env -
Edit
.envto match your environment -
Install poetry dependencies:
poetry install -
Activate virtual env:
poetry shell -
Migrate the database:
./manage.py migrate -
load fixtures:
./manage.py loaddata goosetools/users/fixtures/dev.json -
Setup an initial organization:
./manage.py setup_tenants -
Run the server:
./manage.py runserver_plus -
Visit and Sign Up On http://localhost:8000/
-
Import market data using:
./manage.py runjobs hourly -
Get an interactive python shell into spacepaperwork:
./manage.py shell_plus -
Run non-integration tests:
pytest -
Run integration tests:
./integration_test.sh -
Watch filesystem for changes and re-run non-integration tests when something changes:
ptw -
Run pre-commit checks:
pre-commit run --all-files -
Install pre-commit checks:
pre-commit install
Spacepaperwork runs various jobs at timed intervals such as market data import,
repeating loot groups etc. You must run ./manage.py runcrons every 5 minutes for this
to work. To do so I suggest you setup and use cron like so:
crontab -e
# Now edit and add the following lines:
*/5 * * * * TODO INSERT YOUR PYTHON EXEC HERE manage.py runcrons > /home/ubuntu/cronjob.log