Content-Length: 291564 | pFad | http://github.com/nb-programmer/python-sample-fastapi/tree/f3244f9142b2b3b972a5f9cf844043e8fbd1683e

82 GitHub - nb-programmer/python-sample-fastapi at f3244f9142b2b3b972a5f9cf844043e8fbd1683e
Skip to content

nb-programmer/python-sample-fastapi

Repository files navigation

Sample FastAPI application

Sample FastAPI application.

Template

Note that this is a template project. You will need to make changes to this application if you want to make use of it. Please read the Template readme file for more information on what this project does and how to use the template.

Development setup

  1. (Optional) Install Pyenv and the Python version for this project:
pyenv install
  1. Create a virtual environment:
# Note: For POSIX, pyenv can create a named virtual environment which you can use instead.
# For Windows, pyenv-win exists, but doesn't have this feature afaik.

python3 -m venv venv

# Windows
./venv/Scripts/activate

# POSIX
source ./venv/bin/activate
  1. [Windows] Run the scripts/dev-setup.bat script:
./scripts/dev-setup.bat
  1. [POSIX] Run the scripts/dev-setup.sh shell script using any bash-compatible shell:
bash ./scripts/dev-setup.sh
  1. Create a .env file from the given example and edit it:
cp .env.example .env

# Open the new .env file in your favourite editor and make the changes
  1. Run the dev server using F5 key in VSCode. You can also use the dev-launch shell script:
# Windows
./scripts/dev-launch.bat

# POSIX
bash ./scripts/dev-launch.sh
  1. You can also run the cli script:
sample-fastapi --help

About

Sample FastAPI-based web application boilerplate/template repository

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/nb-programmer/python-sample-fastapi/tree/f3244f9142b2b3b972a5f9cf844043e8fbd1683e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy