A Python Flask REST API to fetch book information in the form of JSON
The application can be deployed as a Docker container.
Firstly build the Docker image
docker build -t bookstore-api:1.0 .
Once the image has built you can start up the container by running:
docker run --rm -it -p 5050:5000 bookstore-api:1.0
Then you should be able to open up your browser and head to http://localhost:5050/books to see the JSON response
The instructions assume that you have Python 3 installed.
If you do not have pipenv
installed you'll need to install this first
pip install pipenv
Once pipenv is installed you can run the application locally by running:
pipenv install
followed by
pipenv run python api.py
NOTE: pipenv can be tempremental and varies from machine to machine if the above steps do not work skip to Running in Docker below