Skip to content

YiKaiWu1125/ElecTrap_backend

Repository files navigation

ElecTrap Backend

Requirements

  • Python 3.8.13+
  • A webcam on host
  • PostgreSQL
  • Redis

Build Steps

Install the database

Linux (Arch Based)

sudo pacman -S postgresql redis

Install Redis on Windows

Tutorial <https://marcus116.blogspot.com/2019/02/how-to-install-redis-in-windows-os.html>

Congigure and enable

sudo -iu postgres
initdb -D /var/lib/postgres/data
exit
sudo systemctl enable postgresql --now
sudo systemctl enable redis --now

Configure PostgreSQL

sudo -iu postgres
createdb ElecTrap_scoreboard

Install environment and dependencies

python -m venv venv
. venv/bin/activate
pip install -r requirements.txt

Run it

python app.py

View it on web browser and play fun

http://localhost:5000

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published