This repo contain small web application that allow IWS staff to log a feature request, requested by the client. The web application will list all feature requests. Staff can create, update or delete the feature requests. This project should meet the minimum requirements as listed in the QUESTION
Hosted in GCP (micro instance) running on Ubuntu 18.04 LTS
- Install Docker
- Clone this repo
- Build docker image
cd britecore-test ./dockerhelper.py build
- Start flask app
After you executed above command, you can now point your browser to https://localhost:8080
./dockerhelper.py start
- Or you can run tests for this app
./dockerhelper.py run_tests
- To stop the container
./dockerhelper.py stop
- To edit the source code, you can SSH into the container
./dockerhelper.py ssh
- Or you can mount the source code to the container so that any code changed, will be reflected in the container
To deploy this Flask app, you can use a script in deployment/fabfile.py
. You need to install Fabric in order to run this script. While Fabric support both Python2 and Python3, I recommend you to use Python3 for this script. Make sure you have a Ubuntu VM with SSH access. Simply run the command below:
cd britecore-test/deployment
fab -f fabfile.py -H <host> provision
Once script successfully executed, you can now point your browser to http://vm-ip-address
- Docker Ubuntu 18.04 container
- Python 2.7
- MariaDB
- Flask
- SQLAlchemy
- Bootstrap 4
- jQuery
- sass