Skip to content

fs/fastapi-base-graphql

Repository files navigation

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/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published