This repository is a microservice for the Garden-Share application. It's sole purpose is to collect an array of zip codes that fall within a specified mile radius and origin zip code.
All repositories in the Garden-Share project can be found here.
- Clone the repository.
- Set up a virtual environment:
python3 -m venv ./venv
i. To shut off the virtual environment:deactivate
- Activate virtual environment:
source venv/bin/activate
- Install Python packages:
pip3 install -r requirements.txt
i. If you get aImportError: No module named dotenv
error, shut off the virtual environment and runpip3 python-dotenv
in the command line to install dotenv globally. - Create a
.env
file in the root directory and add aZIPCODE_API_KEY
key with your registered api key as its value. (See the.env_example
file as an example).
i. Go to this website to register for a free api key.
- Run
pytest
in terminal - Keep in mind, that your api key has a rate limit of 50 requests/hour (for the first 2 weeks) and 10 requests/hour after that.
- Place code snippet at location where you want to break execution:
import ipdb; ipdb.set_trace()
i. If you want to break execution when running a test, usepytest -s
- Aaron Townsend - Turing Student - GitHub Profile - LinkedIn
- Bruce Gordon - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn
- Chadrick Dickerson - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn
- Christopher Allbritton - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn
- Dani Coleman - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn
- Joshua Carey - Turing Student - GitHub Profile - Turing Alum Portfolio - LinkedIn