Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 805 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 805 Bytes

API application template using FastAPI and Strawberry

Getting started

Create .env file with .env.example keys in config folder.

Install dependencies:

poetry install

Activate virtual environment:

poetry shell

Make database migrations:

...

Create superuser for admin panel access:

...

Run celery task queue:

celery -A server worker -l DEBUG -P gevent  # For windows

celery -A server worker -l DEBUG  # For MacOS\Linux

Run server:

uvicorn app.main:app --reload

Run tests

Run test and quality suits to make sure all dependencies are satisfied and applications works correctly before making changes.

pytest .

GraphQL

For testing API you can follow the link http://localhost:8000/graphql/