anthonycepeda / fastapi-sqlmodel

FastAPI + SQLModel App Boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alt text

FastAPI + SQLModel Boilerplate App

A RestAPI real world app based on SQLModel documentation example, using FastAPI and SQLModel

Quickstart

  1. Start the App:
  • Using Python: pipenv run python asgi.py

  • sing Docker: docker build -t sqlmodel-api:latest . && docker run -p 8080:8080 sqlmodel-api:latest

  1. Use Openapi at: http://localhost:8080/#/

Running Tests:

While your app is running, open another terminal: pytest -v tavern_tests/

alt text

About

FastAPI + SQLModel App Boilerplate

License:MIT License


Languages

Language:Python 97.1%Language:Dockerfile 2.8%Language:Shell 0.1%