2024-02-26 08:11:55 +00:00

runme
id version
01HK0BF4BTBSKR9VWAP1KGD2S7 v2.0

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
Description
Software Development Lifecycles WMGZON project source code.
https://wmgzon.luke-else.co.uk
Readme 6.1 MiB
Languages
Python 54%
HTML 28.6%
CSS 16.8%
Shell 0.6%