Skip to content

Latest commit

 

History

History

FastApi

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Basic FastAPI App

Pre-requisites

  1. Python > 3.8
  2. FastApi (pip install fastapi)
  3. Uvicorn (pip install uvicorn)

Run the app

open a terminal in the app directory (cd FastApi)

  1. From server.py python server.py

  2. From CLI uvicorn src:app --reload --port 5050 --host 127.0.0.1

Hit the API Docs

  1. Go to browser and open the url 127.0.0.1:5050
  2. Once the OpenAPI doc opens, try the route and put any message.

❤️ Happy Coding