-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
- Python 3.x
- pip
-
Create a Python virtual environment:
python -m venv venv
-
Activate the virtual environment:
Linux & Mac:
source ./venv/bin/activateWindows:
venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
This starts both the main site AND the manager.
Linux & Mac:
chmod +x StartWebsite.sh
./StartWebsite.shWindows:
This is
StartWebsite.batThis script automatically activates the virtual environment and starts the website.
If you prefer to start the server manually:
Linux/Mac:
source ./venv/bin/activate
python bump-sw.py
python manager.py & # This is optional! If you don't need to manage videos, you can omit this.
python -m RangeHTTPServer 8000 --bind 0.0.0.0and after running, kill the manager PID then deactivate venv.
kill [Insert PID here] # Unnecessary if you skipped manager.py
deactivateWindows:
To be honest, I don't really know what you do on Windows. This is my best guess. Just use the .bat file honestly it makes this so much easier.
On Command Prompt:
venv\Scripts\activate.bat
python bump-sw.py
python -m RangeHTTPServer 8000 --bind 0.0.0.0if you need to use the video manager, open in a second tab:
python manager.pyThere's probably a better way to do this, but this is the simplest. Let me know if there's a better way!
Important Security Note: By default, the server binds to all network interfaces (0.0.0.0), making it accessible on your local network. If you only want local access (just this device), omit the --bind flag and everything after it:
python -m RangeHTTPServer 8000Once the server is running, open your browser and navigate to:
http://localhost:8000
If you want to access it from another device on your local network:
http://[YOURLOCALIPHERE]:8000