Skip to content

CharlesYWL/StripeTest-FastAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image of FastAPI

How to Run FastAPI

Install and Enter python env

$ virtualenv --no-site-packages --distribute .env 
$ .env/bin/activate 
$ pip install -r requirements.txt

Start FastAPI Server with Command Line

$ cd src
$ uvicorn main:app --reload

Start FastAPI Server with PyCharm

Set Configuration path as: \StripeTest\src\main.py Add below code to your main.py, These code has already in this repo so you dont need to add that.

import uvicorn
if __name__ == "__main__":
    uvicorn.run("main:app", host="localhost", port=8000, reload=True)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages