We require a tool that can automate post production deployment checks.
git clone [email protected]:getsmarter/page_checker.git
cd page_checker
Create a local configuration file:
cp etc/config_local_template.py etc/config_local.py
Set parameters in the new, un-versioned, file. In most cases, you will only need to define the following variables to config_local.py:
- PC_USERNAME
- PC_PASSWORD
Run docker compose up or down to run/stop the container. I.e. to start container:
docker-compose up
Install Firefox - see the download page.
Install Firefox's webdriver:
# macOS
brew install geckodriver
# Debian/Ubuntu
sudo apt-get update
sudo apt-get install firefox-geckodriver
Install Python 3:
# macOS
brew install python@3
# Debian/Ubuntu
sudo apt-get update
sudo apt-get install python3
Create a virtual environment in the repo. Activate it whenever install packages into it or running this project.
python3 -m venv venv
source venv/bin/activate
Install production dependencies:
pip install -r requirements.txt
Or, install prod and dev dependencies at once:
pip install -r requirements-dev.txt
Create a local configuration file:
cp etc/config_local_template.py etc/config_local.py
Set parameters in the new, un-versioned, file. In most cases, you will only need to define the following variables to config_local.py:
- PC_USERNAME
- PC_PASSWORD
Run commands inside the virtual environment.
The project entrypoint is page_checker.py.
Run pylint
before submitting a PR.