sunshine17 / python_flask-cashman

An exercise using python and Flask to implement a simple RESTful application (cashman).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run with the manaul way(non-container)

Start tha server

start.sh

Run with the docker way

Build the image locally

docker build -t cashman .

Run the container in port 5000

docker run --name cashman \
    -d -p 5000:5000 \
    cashman 

After the server is up, run some casual tests

Fetch incomes from the dockerized instance

curl http://localhost:5000/incomes/

Helper shell script for testing

./test-1.sh

About

An exercise using python and Flask to implement a simple RESTful application (cashman).

License:MIT License


Languages

Language:Python 87.4%Language:Dockerfile 9.9%Language:Shell 2.7%