Skip to content

urdeadagain/devops-bookstore-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOps Bookstore API

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

Currently being built via CircleCI

Instructions

Running Locally

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

Running Unit Tests

The tests can be ran in the same manner as running the application.

Ensure you are in the root of the project and run:

pip install pipenv

Once pipenv is installed you can run the application locally by running:

pipenv run python -m unittest

Running in Docker

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 5000:5000 bookstore-api:1.0

Then you should be able to open up your browser and head to http://localhost:5000/books to see the JSON response

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 91.1%
  • Dockerfile 8.9%