-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
13 lines (7 loc) · 859 Bytes
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
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