http://127.0.0.1:5000/docs
http://127.0.0.1:5000/redoc
POST: to create data.
GET: to read data.
PUT: to update data.
DELETE: to delete data.
git checkout develop
git pull --rebase upstream develop
git push
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
pip install -r requirements.txt
creating a python venv to work in and install the project requirements
python -m venv .venv
.venv\Scripts\activate
python -m pip install --upgrade pip
pip install -r requirements.txt
#!/bin/bash
# Replace '==' with '>=' in requirements.txt
sed -i 's/==/>=/g' requirements.txt
# Install or upgrade packages
pip install -r requirements.txt --upgrade
# Save the installed package versions to requirements.txt
pip freeze > requirements.txt
# Replace '>=' with '==' in requirements.txt
sed -i 's/>=/==/g' requirements.txt
when you added some dependancies update the requirements
venv\Scripts\activate
call pip freeze > requirements.txt
when you want to upgrade the dependancies
venv\Scripts\activate
powershell "(Get-Content requirements.txt) | ForEach-Object { $_ -replace '==', '>=' } | Set-Content requirements.txt"
call pip install -r requirements.txt --upgrade
call pip freeze > requirements.txt
powershell "(Get-Content requirements.txt) | ForEach-Object { $_ -replace '>=', '==' } | Set-Content requirements.txt"
if your branch gets out of sync and for some reason you have many pushes and pulls, to become insync without pushing some random changes do this
git fetch origin
git reset --hard origin/{branchname}
git clean -f -d