| app | ||
| .dockerignore | ||
| .gitignore | ||
| .gitkeep | ||
| app.py | ||
| deploy.ps1 | ||
| docker-compose.yaml | ||
| Dockerfile | ||
| README.md | ||
| requirements.txt | ||
bsoned.vinyl
Personal vinyl cataloguing website
Requirements
Needs Node.js and LESS to compile CSS during development. Grab Node.js from here, then run npm install -g less to install LESS.
After pulling and installing Node.js and LESS, run py -m venv venv from the main directory. Load the new virtual environment by running venv/Scripts/Activate, then run pip -r requirements.txt to install the required dependencies.
Needs database login credentials. Ask owner for details.
Run flags and arguments
Before running, load the virtual environment by running venv/Scripts/activate. To exit, run deactivate.
Running the launcher run.py from the command line gives several arguments to aid in development.
Most common launcher command is py run.py -dev.
-dev
Shorthand for -fr -less.
-test or -t
Runs the launcher in test mode. Does not start the webserver and does not compile LESS to CSS. Intended for launch configuration work.
-fr
Force remote. Skips a check for a local MySQL instance. Reduces startup time by virtue of avoiding a timeout.
port [port] or -p [port]
Specifies a port to run the webserver. Default is :80.
-log [level]
Specifies the logging level. There are currently three log levels:
- info
- debug
- trace
-less
Specific flag for using LESS as opposed to compiling and using CSS.