Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

techreturners/devops-bookstore-api

Open more actions menu

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

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.