API for a university carpooling application called Navette. Project for University of Picardie (Amiens, France) - Master Degree.
python3 -m venv .venv
source .venv/bin/activate
pip install fastapi "uvicorn[standard]" "pydantic[email]" pydantic-settings sqlalchemy psycopg2-binary alembic
pip freeze > requirements.txt
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
touch .env
Adapt .env
file before if necessary.
alembic revision --autogenerate [-m ""]
alembic upgrade head
Adapt .env
file before if necessary.
docker compose -f docker-compose-local.yml up -d
uvicorn src.main:app --reload
You maybe need Bearer Token to access to the apps.
For example :
Authorization: Bearer Ym9zY236Ym9zY28Ym9zY236Ym9zY28=