This service provides an API for working with a set of items by forming an hierarchy. Hierarchy is represented by a collection of trees. Each item within a tree has a unique name and points to its parent (which is 'null' in case of a root item). One can create, rename, move and delete items within the hierarchy.
See OpenAPI specification: app.swaggerhub.com
- Build image:
docker-compose build
- Set environment variables:
export FLASK_ENV=production
export POSTGRES_PASSWORD=your_pass
export POSTGRES_USER=your_user
export POSTGRES_DB=your_db
- Run
docker-compose up -d
- Initialize database:
docker-compose run web flask init-db
Visit http://localhost/hierarchy
Implementation of hierarchical structure is based on nested sets model.