Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

transtelco/api-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-python

This is a program written in python. It is an simple API it intially registers itself with consul, and afterward it just responds to calls.

requirements

running program

You can use the following command on a bash shell to get the program running.

# start the application must have consul running
export CONSUL_PORT=locahost
export CONSUL_HOST=8500
pip install -r requirements.txt 
FLASK_APP=api.py flask run

dockerize program

docker build -t <dockerhub-user>/api-python:latest .
docker run -p 5000:5000 <dockerhub-user>/api-python

About

simple API written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages