guywilsonjr / AllStars

GNU General Public License v3.0
0 stars 0 forks source link

AllStars

Development Setup

From the root directory of this repository do the following:

  1. Create a python virtual env (venv)

python3.10 -m venv .venv

  1. Activate the virtual env

source .venv/bin/activate

  1. Install dev and regular requirements
pip install -U pip setuptools wheel
pip install -r requirements-dev.txt
pip install -r requirements.txt

[VERY OPTIONAL] Updating dependency packages to newest release

Before messing around here I highly recommend reading or understanding the material in the article Pip-tools for Cross-OS development

pip-compile -U
pip install -r requirements.txt

4.

Start the main application server

python visual/main.py

Open your browser and goto: localhost:80(Recommended) or 127.0.0.1:80

Non-Development Instructions for Server start

We make use of the important screen to keep our terminal session commands from dying when we disconnect. Why we use screen and why it's important! For only code updates skip to last step

  1. Run steps 1-3 of the Development setup
  2. [Only needed once]Move the service config file called allstars.service to the folder /etc/systemd/system. The command might be something like: sudo cp allstars.service /etc/systemd/system
  3. Refresh systemd whenever you make a change to the file and want to update that file sudo systemctl daemon-reload
  4. Start the service sudo service allstars restart