Testing Scripts for PedalPals key features.
Before you begin, make sure you have the following installed on your system:
- Python (version 3.9.7)
- pip (Python package manager)
It's a good practice to work in a virtual environment to keep project dependencies isolated. To set up a virtual environment, follow these steps:
-
In the root directory of the project, create a new virtual environment:
python -m venv env
This will create a new directory called `env
-
Activate the virtual environment:
source env/bin/activate
This will change your terminal prompt to indicate that you're working in the virtual environment.
-
Install the project dependencies:
pip install -r requirements.txt
This will install all the dependencies listed in the
requirements.txt
file. -
Setup Config File by creating a config.py that contains the following:
# config.py GOOGLE_MAPS_API = 'YOUR_API_KEY' EMAIL = 'EMAIL USED FOR ONEMAPS ACCOUNT' PASSWORD = 'YOUR_PASSWORD>'
Note that you will need to register for the OneMap API