Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 813 Bytes

File metadata and controls

57 lines (41 loc) · 813 Bytes

RestAPI

Service for experiments with REST API written in Python (backend_app)

Requirements installation

pip install -r backend_app/requirements.txt

Running the application from source

Debug mode:

cd backend_app
uvicorn src.main:app --reload

Runnning as a service (not waiting in the console):

cd backend_app
uvicorn src.main:app &

Tests execution

pytest -v

Running the application from dockerfile

cd backend_app
docker build -t backend_app .
docker run -p 8000:80  backend_app
cd frontend_app
docker build -t frontend_app .
docker run -p 3000:5173  frontend_app

Running whole configuration from the Docker Compose

Pre-requisites

apt install make

Starting all services

make up