wirvsvirus-dortmund / backend

Backend for the job status service / flask / sqlalchemy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backend Build Status

Backend for the shop status and appointment service using flask and sqlalchemy

Getting started

This is a python project using poetry.

You'll need python ≥ 3.6.

  1. Get poetry:

    $ pip install [--user] poetry
    
  2. Copy the env-template and fill in the config

    $ cp env-template .env
    
  3. Install dependencies

    $ poetry install
    
  4. Run database migrations

    $ poetry run flask db upgrade
    
  5. Run the unit tests

    $ poetry run python -m pytest
    
  6. Start app in debug mode

    FLASK_DEBUG=true poetry run flask run
    
  7. You can add some random data to the database using

    $ poetry run python examples/fill_some_data.py
    
  8. httpie is a great http cli, e.g. you can look at the customer data for a shop:

    http :5000/api/shops/1/customers
    

Conflicts in poetry.lock

When poetry.lock has conflicts, don't bother resolving them by hand. Delete the file and recreate it by running poetry install.

About

Backend for the job status service / flask / sqlalchemy

License:MIT License


Languages

Language:Python 95.1%Language:Dockerfile 3.0%Language:Mako 1.3%Language:Shell 0.6%