Skip to content

AreRex14/fastapi-demo-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-demo-clone

from https://docs.wayscript.com/quickstart/set-up-fastapi-server

Dependencies

The requirements include:

  • fastAPI
  • uvicorn

Found in requirements.txt

Setup

  1. Have Python3
  2. python -m pip install -r requirements.txt

Trigger Configuration: python -m uvicorn main:app --reload --host 127.0.0.1 --port 8080

App specific code: Each route can be found within main.py . To define the type of request you expect from the user, you denote it using the method of the corresponding method on @app. The function underneath each decorated @app defines the logic for that url endpoint