Skip to content

Backend for the job status service / flask / sqlalchemy

License

Notifications You must be signed in to change notification settings

wirvsvirus-dortmund/backend

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •