This repository contains all of the code for cuhHub's frontend hosted at https://cuhhub.com.
- Download cuhHub files:
git clone https://github.com/cuhHub/frontend
(git
required) - Install requirements:
pip install -r requirements.txt
(Python 3.12+ andpip
required) - Rename
example_config.toml
toconfig.toml
. Edit config parameters as desired. - If planned to be ran in production, create server certificates using something like Let's Encrypt.
- Set up NGINX. Modify your NGINX config to redirect HTTPS requests from
cuhhub.com
(or your own domain) from port 443 over to the port you specified in your config under[prod]
. Be sure to adjust config so that HTTP requests (port 80) get directed to HTTPS (port 443). Ensure NGINX uses the certificates you created above. - Ensure NGINX is running, then run
cd src
and finallypy main.py
to start the frontend.
When running in dev mode (in config, environment.mode
should be dev
), simply go to localhost:PORT
in your browser to test everything out with PORT
being the port you specified under [dev]
.
Ensure required ports are forwarded and allowed through firewall.
- Cuh4 - Main Developerv