Skip to content
/ FastAPI-Base Public template

A template Repo using FastAPI

Notifications You must be signed in to change notification settings

Rehket/FastAPI-Base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Template Repo

Setup

  • Create and activate a virtual environment

  • Setup the env.ps1 script with desired variables.

  • In the virtual environment:

    • run the env.ps1 script to set the environment variables.
    • install the packages included in the req.txt
    • run python ./bootstrap.py

    If you want the alembic generated model use:

    • run alembic revision --autogenerate -m "Setup initial user table"
    • run alembic upgrade head
    • run python ./initial_data.py

    Lastly...

    • run uvicorn app.main:app --reload to start the application

Usage

  • Once the application is running, by going to localhost:8000/docs or what you configured in the env.ps1, you will be able to login and tryout the endpoints.

Change Log:

1-Aug-2019

Changing this repo from a repo used for demoing an issue to a template for making an API service using postgres and FastAPI.

  • Adding an archive with the old readme detailing the error.

About

A template Repo using FastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published