iamzehan / fastapi

Learning Curve

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi

Learning Curve

Clone this repository

        git clone https://github.com/iamzehan/fastapi.git

Create Virtual Environment

        virtualenv <env_name>

Activate Envrionment

        <env_folder>\Script\activate

Install dependencies

(Assuming you have pip and python already installed)

        pip install -r requirement.txt

Run Project

        uvicorn python_file:app 

Or

        uvicorn python_file:app --reload
app= FastAPI()

pythonfile: file you're working with

Open in Browser

        http://127.0.0.1:8000/

Open Docs

        http://127.0.0.1:8000/docs

Generate random SECRET KEY

** git bash cli required

       openssl rand -hex 32

About

Learning Curve


Languages

Language:Python 96.8%Language:HTML 3.2%