This is the core service of our Configuration and Dependency Checking application.
The following is where our live api gatway is located
https://paws-backend.link/
sudo apt-get install python3-venv
(if needed)python3 -m venv [environment-name]
. [environment-name]/bin/activate
or[environment-name]\Scripts\activate
(Windows)- If using vscode, ensure the correct interpretor is set
python -m pip install --upgrade pip
pip install -r requirements.txt
- Navigate to
/src
and runpython -m flask run
Note: .gitignore will ensure your .vscode and venv folders do not get accidentally committed
If you use pylance as your python engine, you may have to add "python.analysis.extraPaths": ["./src"]
to your settings.json inside the .vscode folder
The tool has been deployed onto AWS using AWS Elastic Beanstalk. To deploy, follow the steps below:
- In your virtual env, install the EB CLI and verify that it is installed correctly.
pip install awsebcli --upgrade eb --version
- Get your API Key and Secret from your AWS console and update your credentials in
~/.aws/config
. - Follow the commands mentioned below, replacing the region with your selected region.
eb init -p python-3.6 flask-tutorial — region ap-southeast-2 eb init eb create flask-env eb open
- Now your flask application has been deployed! To terminate follow the commands below:
eb terminate flask-env
We have conducted both unit and integration tests in /src/tests