summaryrefslogtreecommitdiff
path: root/web_interface/README.md
blob: 31e49e702cee15ca23b090be7c1a37ed8b78616d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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)