anaconda1337 / apia

fastapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

APIA (Api Angelina)

  • Example FastAPI following good practices and using the best tools for development.

Features

  • FastAPI
  • Pydantic
  • Docker
  • Alembic
  • Postgres
  • Firebase
  • Pytest
  • Flake8
  • Mypy

Requirements

  • To be defined

Installation

  1. Bring up the database with docker-compose
docker compose up --build -d
  1. Run the migrations
alembic upgrade head
  1. Run the application
uvicorn app.main:app --reload

Usage

  • To be defined

Notes

  • Setup Firebase or remove the dependencies from the routes

Curl

  1. User IdToken from Firebase:
    curl --request POST \
      --url 'https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=[FIREBASE_API_KEY]' \
      --header 'Content-Type: application/json' \
      --data '{
      "email": "user@domain.tld",
      "password": "12345678",
      "returnSecureToken": true
    }'

About

fastapi


Languages

Language:Python 97.1%Language:Mako 2.7%Language:Dockerfile 0.2%