Skip to content

techreturners/devops-bookstore-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOps Bookstore API

A Python Flask REST API to fetch book information in the form of JSON

Instructions

Running in Docker

The application can be deployed as a Docker container.

Firstly build the Docker image.

⚠️ Note: We specify the platform as linux/amd64 within the build and run commands. By default, Docker will use the host platform architecture which if you are on a Mac might not work when deploying your container on to Linux platforms.

docker build --platform linux/amd64 -t bookstore-api:1.0 .

Once the image has built you can start up the container by running:

docker run --platform linux/amd64 --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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published