1.3 KiB
1.3 KiB
runme | ||||
---|---|---|---|---|
|
WMGZON
Flask web application serving WMGZON and its relevant backend services.
Initialisation
To start you need to create a virtual environment and load in the required dependencies for the project
python -m venv .venv
./.venv/Scripts/Activate.ps1
pip install -r requirements.txt
Testing
To run the full suite of unit tests for the webapp simply run the following command in the venv
pytest
Running
Pre-Requisites
- Docker daemon is installed and running.
- Docker compose is installed.
Instructions
In order to run the web app, simply use the command
docker-compose up -d
to run the container in a detatched mode.
Container
Alternatively, to deploy the app from the lastest published container:
version: '3.8'
services:
wmgzon:
container_name: "wmgzon"
image: lukeelse/wmgzon:latest
environment:
- FILESTORE=static/assets/img/products/
tty: true
ports:
- "8080:8080"
volumes:
- ./files:/app/$FILESTORE
restart: unless-stopped