Skip to content

aa9863/Fastapi_Template

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
October 18, 2024 16:56
October 7, 2024 08:56

FastAPI Example Project

Perhaps, use as boilerplate / template for further work

Setup Instructions

Create a Virtual Environment. You should only have to do this once

python -m venv env

Activate it

source env/bin/activate

Install Dependencies

pip install -r REQUIREMENTS.txt

Usage

  1. Activate the virtual environment

    source env/bin/activate
    
  2. Start Fast API In Development Mode

    fastapi dev webapp/main.py
    

Testing

Run tests using Pytest

pytest -vs

Testing with Coverage

pytest --cov=webapp

or with a HTML report

pytest --cov=webapp --cov-report html

About

Template Repo for FastAPI Projects. Used in 5041CMD

Resources

Stars

Watchers

Forks

Releases

No releases published