/rest_api_base

Base para uma api rest em FastApi

Primary LanguagePython

REST Api Base

Features

  • ORM (sqlmodel)
  • Migrations (alembic)
  • Authentication (JWT)

Requirements

Setup

  • Copy .env.example -> .env and edit according to your needs
  • Run poetry install

Migrations

  • Update your database: make migrate or poetry run alembic upgrade head
  • Create new migration: make migration name="migration name"

Start development server

  • make start or poetry run uvicorn web.main:app --reload

Documentation

Go to /docs to access swagger auto-generated docs.