Backend part of travel portal TripTip
Before you start, make sure you have the following installed:
-
Python 3.12+ (Make sure Python is added to your PATH)
-
uv (for dependency management)
Install uv with our standalone installers:
# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Or, from PyPI:
# With pip.
pip install uv
# Or pipx.
pipx install uv
If installed via the standalone installer, uv can update itself to the latest version:
uv self update
See the installation documentation for details and alternative installation methods.
uv's documentation is available at docs.astral.sh/uv.
Additionally, the command line reference documentation can be viewed with uv help
.
uv manages project dependencies and environments, with support for lockfiles, workspaces, and more,
similar to rye
or poetry
:
To run this project do the following:
- Install poetry dependencies:
uv venv
- Install venv:
source .venv/bin/activate
- Sync dependencies:
uv sync
- Copy environment sample
cp .env_sample .env
- Run project:
Locally:
make run
In container:
make run_trip_tip_backend_in_container
Code style:
-
Use black style - Black style guide;
-
Line length 100 symbols;
-
Don't forget to docstring and comment.
Current stack:
Python 3.12, FastAPI, Uvicorn, Postgres, Docker, pytest, nginx, Ruff
Creators:
Ivan Murzinov Frontend, Project Founder
Polina Bykova UX/UI
Pavel Surint QA/Backend
Nikita Assorov Backend