Chris
@
Machine
Blog
Topics
Creating a Todo list with FastAPI
Create development Environment
conda create -n todolist python=3.9 pip -y conda activate todolist
Install MongoDB
Mac:
sudo mkdir -p /System/Volumes/Data/data/db sudo chown -R `id -un` /System/Volumes/Data/data/db brew tap mongodb/brew brew install mongodb-community brew tap homebrew/services brew services start mongodb-community
Check Service is running:
brew services list
Stop mongo
brew services stop mongodb-community
Restart mongo
brew services restart mongodb-community
Linux:
Link
Install packages
pip install fastapi pip install uvicorn pip install fastapi[all] ## this installs a lot of useful stuff
Code for TODO List
link
Tagged in
fastapi
Prev
Next