Skip to content

kmcneelyshaw/api_poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-POC

A toy API. Creates, deletes, and lists comments, allowing upvotes and downvotes. Built with Hug, PyMongo, NGINX, Gunicorn, and Docker.

Installation

To build and run, use

$ docker-compose up --build -d

Documentation

Once you bring it up, the API is documented at http://localhost:8000/docs . The proxying gets hug slightly confused, so where the examples say http://localhost,localhost/ you will need http://localhost:8000/ before the remainder of the path.

Influences

This approach is influenced by two examples from the hug project: https://github.com/hugapi/hug/tree/develop/examples/docker_compose_with_mongodb and https://github.com/hugapi/hug/tree/develop/examples/docker_nginx

About

A toy API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published