Skip to content

Dockerized API service built with Flask and SQLAlchemy made for the "Infrastructure of e-business" course project at School of Electrical Engineering, department of Software Engineering, Belgrade.

Notifications You must be signed in to change notification settings

brkagithub/shopAPIdocker

Repository files navigation

Dockerized API service built with Flask, SQLAlchemy and Docker. It has API endpoints for customers, managers and administrators of the shop. All of those services are in separate docker containers which can be run together using compose.yaml docker-compose file (and docker swarm to run it on a computer cluster).

Command for running tests

python main.py --type all --with-authentication --authentication-address http://127.0.0.1:5002 --jwt-secret JWT_SECRET_KEY --roles-field roles --administrator-role admin --customer-role customer --warehouse-role manager --customer-address http://127.0.0.1:5006 --warehouse-address http://127.0.0.1:5001 --administrator-address http://127.0.0.1:5010

Commands to initialize docker swarm with the running containers

docker swarm init

docker stack deploy --compose-file compose.yaml projekat

docker stack rm projekat

About

Dockerized API service built with Flask and SQLAlchemy made for the "Infrastructure of e-business" course project at School of Electrical Engineering, department of Software Engineering, Belgrade.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published