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/activate
on MacOS/Linux orvenv\Scripts\activate
on Windows - Open the project in your IDE
- Open the
Makefile
and set thePYTHON_PATH
depending on your OS (see comment in file) - Run
make local_db
to start the local database - Run
make serve
to 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 ([email protected])