Skip to content

Application Templates

Lucas Rebscher edited this page Feb 1, 2021 · 13 revisions

Choosing Templates

If you create a new application, you have to choose the underlying templates used for the application generation.

Running harness-application --help will list the currently available templates:

usage: harness-application [-h] [-t TEMPLATES] name

Creates a new Application.

positional arguments:
  name                  Application name

optional arguments:
  -h, --help            show this help message and exit
  -t TEMPLATES, --template TEMPLATES
                        Add a template name. Available templates: - base (backend flask app based on openapi, always included) - webapp (webapp including backend and frontend) - db-postgres - db-neo4j - db-mongo

Available Templates

base

  • This template is always included.
  • The backend is a Python Flask application.
  • The Connexion library maps the APIs from the OpenAPI definition to the Flask routing.
  • Gunicorn is used to serve the Flask app

Webapp

  • Consisting of a Python backend (base) and a React web frontend

Databases

  • db-postgres
  • db-neo4j
  • db-mongo