API for fetching address details from an address database.
Based on the LBH Base API
- Flask as a web framework.
- SQLAlchemy as an ORM.
- PyTest as a test framework.
- Install Docker.
- Install a recent version of Python.
- Clone this repository.
- Install dependencies in a venv with
make install - Activate the venv with
source venv/bin/activateon MacOS/Linux orvenv\Scripts\activateon Windows - Open the project in your IDE
- Open the
Makefileand set thePYTHON_PATHdepending on your OS (see comment in file) - Run
make local_dbto start the local database - Run
make serveto start the API - Connect to the API at
localhost:5000
You can alternatively run the API with Docker with make serve_docker - check the console for the hostname to connect to
- Spin up the local database with
make local_db - Run the tests with
make test - You could instead run the tests with Docker with
make test_docker
- Adam Tracy, Associate Software Engineer at London Borough of Hackney (adam.tracy@hackney.gov.uk)