Skip to content

zzh1991/fastapi-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Web

Page Views Count

Configure

Mac下conda环境操作、conda换源、pip换源_python_Awt_FuDongLai的博客-CSDN博客

Conda

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/

mkdir .pip
cd .pip
vim pip.conf

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

conda create -n py36 python=3.6
source activate py36

Package

pip install fastapi
pip install uvicorn
# for mongodb
pip install pymongo

MongoDB Tutorial

Create Database

mongo

# create feedback database
use feedback

# create feeds collection
db.createCollection("feeds")

show collections

# remove all documents
db.feeds.remove({})

🚀 Usage

uvicorn main:app --reload

Swagger UI

Author

👤 Zhihao Zhang

Show your support

Please ⭐️ this repository if this project helped you!

📝 License

Copyright © 2020 zzh1991.
This project is MIT licensed.

About

FastAPI Web Application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages