Skip to content

Baljan/cafesys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7042ff0 · Jan 28, 2025
Sep 9, 2024
Jan 28, 2025
Sep 9, 2024
Jun 5, 2023
Sep 9, 2024
Oct 17, 2024
Sep 10, 2024
Sep 11, 2024
Sep 10, 2017
Oct 20, 2024
Oct 17, 2024
Sep 11, 2024
Oct 17, 2024
Sep 11, 2024
Mar 11, 2021
Oct 17, 2024
Oct 17, 2024
Jul 5, 2017
Oct 17, 2024
Dec 27, 2022

Repository files navigation

Cafesys

Cafesys is the Django application driving the website of Sektionscafé Baljan. It features staff management and the fantastic Blipp system for coffee.

Setting up a development environment using Docker

Note: This guide requires that you have installed Docker and Docker Compose (see https://docs.docker.com/compose/install/).

If you are using Windows as OS, start by downloading WSL.

Install the Heroku client:

# WSL/Linux: 
curl https://cli-assets.heroku.com/install.sh | bash

# macOS:
brew tap heroku/brew && brew install heroku

If your machine has make available, you can run:

make setup

Otherwise, follow the steps below:

  1. Login to heroku through the terminal by running:
heroku login
  1. Create a backup of the PostgreSQL database by running:
heroku pg:backups:capture --app baljan
  1. Download a dump of the database to the current directory:
heroku pg:backups:download --app baljan -o docker-entrypoint-initdb.d/latest.dump
  1. Copy .env.docker.tmpl to .env.docker

  2. Create a superuser for the admin

docker compose run --rm django ./manage.py createsuperuser

Then you're ready to go!

To start the project, run:

make start
# or 
docker compose up --build -d django celery-worker