Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 913 Bytes

README.md

File metadata and controls

52 lines (34 loc) · 913 Bytes

Navette API

API for a university carpooling application called Navette. Project for University of Picardie (Amiens, France) - Master Degree.

Initial setup

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

Setup

python -m venv .venv
source .venv/bin/activate

pip install -r requirements.txt

touch .env

Migration

Adapt .env file before if necessary.

alembic revision --autogenerate [-m ""]
alembic upgrade head

Run locally

Adapt .env file before if necessary.

docker compose -f docker-compose-local.yml up -d 
uvicorn src.main:app --reload

Access

You maybe need Bearer Token to access to the apps.
For example :

Authorization: Bearer Ym9zY236Ym9zY28Ym9zY236Ym9zY28=