Software Development Lifecycles WMGZON project source code. https://wmgzon.luke-else.co.uk
Go to file
2024-02-23 22:07:57 +00:00
cicd CHORE: Updated dockerfile to include entrypoint 2024-02-18 20:06:12 +00:00
controllers CHORE: Fixed pep8 test failure 2024-02-14 22:14:42 +00:00
models #5 Started wiring up endpoints do display user stats 2024-02-01 01:44:02 +00:00
scripts #11 REFACTOR: Moved all tests into test classes 2024-02-23 21:15:06 +00:00
static FEATURE: Added modal for product photos 2024-02-16 12:36:59 +00:00
templates FEATURE: Added modal for product photos 2024-02-16 12:36:59 +00:00
tests #11 Created product filter test :) 2024-02-23 22:07:57 +00:00
utils #5 Created ability to generate views for a given product from the past X days 2024-02-05 23:19:39 +00:00
.env CHORE: gitignore stopped actual env file being committed 2024-02-18 19:27:03 +00:00
.gitattributes Added .gitattributes file to ensure that bash file line endings stay correct 2024-01-29 20:12:20 +00:00
.gitignore CHORE: gitignore stopped actual env file being committed 2024-02-18 19:27:03 +00:00
.gitlab-ci.yml CHORE: Changed pipeline docker build container 2024-02-18 20:50:50 +00:00
app.py CHORE: Created .env file to store environment vars 2024-02-18 19:22:35 +00:00
docker-compose.yml CHORE: Created .env file to store environment vars 2024-02-18 19:22:35 +00:00
dockerfile CHORE: Exposed correct port in docker file 2024-02-18 21:05:19 +00:00
pep8.bat #11 REFACTOR: Moved all tests into test classes 2024-02-23 21:15:06 +00:00
README.md CHORE: Created .env file to store environment vars 2024-02-18 19:22:35 +00:00
requirements.txt #11 Starting on the creation of an end to end test environment 2024-02-23 18:25:05 +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