# Drinks machine - Web interface ## Setup & running ### Setup dev 1. [Download nix](https://nixos.org/download/) 2. Run: `nix-shell --command make` ### Setup prod ```bash python3 -m venv venv source venv/bin/activate pip install .[prod] ./manage.py collectstatic sudo ln -sr misc/prod_configs/drinks_machine_nginx.conf /etc/nginx/sites-enabled/ sudo ln -sr misc/prod_configs/drinks-machine.service /etc/systemd/system/ sudo systemctl daemon-reload sudo useradd drinks -m sudo chown drinks: /opt/drinks_machine/ -R sudo chmod g+rw /opt/drinks_machine/ -R sudo usermod -aG drinks sudo systemctl enable --now drinks-machine.service ``` ![ER Diagram](../docs/diagrams/ER.svg) ## TODO - [ ] Alchol types (You might load 3 rum bottles and have to pick one) - [ ] Alchol percentage - [ ] Admin interface - [ ] Drink pop (cancel drink)