Skip to content

Simple example of how our microservice should be structered

Notifications You must be signed in to change notification settings

predicar/microservice_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-microservice-example

Python Flask app with basic structure and example of API

Ways to start up:


1. without Docker

Install requirements

pip install -r requirements.txt

Run tests:

python -m unittest server/tests/*.py

Start server: (in case of ModuleNotFoundError, run export PYTHONPATH=.)

python server/app.py

Visit: API documentation


2. with Docker

Run Docker compose

docker-compose up

Visit: API documentation

About

Simple example of how our microservice should be structered

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published