Coder Social home page Coder Social logo

brkagithub / shopapidocker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 55 KB

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.

Dockerfile 2.45% Python 97.55%
docker docker-compose docker-image docker-swarm flask python sqlalchemy

shopapidocker's Introduction

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

shopapidocker's People

Contributors

brkagithub avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.