- Download a good IDE: https://code.visualstudio.com/download
- Install python, this code base is tested on Python 3.10: https://www.python.org/downloads/
- clone the repo down: git clone
- Change directory to the /frontend directory
- Create a python virtual env: Windows: python -m venv venv Linux: python3 -m venv venv or python -m venv venv
- Activate the Virtal environment: Windows: venv/Scripts/Activate Linux: source venv/bin/activate
- Install the project requirements: pip install -r requirements.txt or pip3 install -r requirements.txt
- do the setup steps
- Get assigned a task from the project board:
- create a branch and check out that branch: command line: git checkout -b
- Start writing your code
- When you wish to push the changes you have made to your branch add the changes: git add . commit the changes: git commit -m "some-message" push the changes: git push
-
WHY: The tests serve as live documentation, they are a true representation of the current state of the code base
-
HOW: The tests can be run using pytest or using coverage (which uses pytest and provides handy tools to figure out how much of the codebase is covered by the tests) command to run from the /frontend directory: coverage run -m pytest
- Make sure you are inside the frontend directory
- Make sure the virtual environment is active
- run the application: Windows: python application.py Linux: python3 application.py
The Zen of Python: https://peps.python.org/pep-0020/