- CRUD for docs
- Install virtualenv
pip install virtualenv - Create the virtual environment named "env":
virtualenv venvorpython -m venv envfor windows (cmd as admin) - Add the path to the git ignore file (optional):
echo env/ >> .gitignore - Activate the virtual env:
source env/Scripts/activateor.\env\Scripts\activatefor windows - Install dependencies:
pip install pymongo pymongo[srv] fastapi uvicorn python-dotenv - Run:
uvicorn index:app --reloadorpython -m uvicorn index:app --reloadfor windows - If you encounter
NameError: name 'sys' is not definedin windows, try:pip install pymongo[srv]