lily_website

πŸš€ Getting Started

⬅️ Back 🏠 Docs Root

This guide covers how to run the project locally for development and testing.

The easiest way to spin up the entire environment (Backend, DB, Nginx).

Start

# Build and start in background
docker-compose up -d --build

Logs

# All services
docker-compose logs -f

# Specific logic
docker-compose logs -f backend

Stop

# Stop containers
docker-compose stop

# Stop and remove containers (volumes preserved)
docker-compose down

Cleanup (Caution!)

# Remove containers, networks, and VOLUMES (DB data and uploads will be lost!)
docker-compose down -v

🐍 Local Run (Development)

If you need to debug code or run without Docker.

1. Database

You still need PostgreSQL. Run just the DB in Docker:

docker-compose up -d db

Or use an external Postgres (Neon, local). Ensure .env is configured correctly.

2. Backend

cd backend
# Activate venv
source .venv/bin/activate  # Linux/Mac
# .venv\Scripts\activate   # Windows

# Install dependencies
pip install -r requirements.txt

# Run server with Hot Reload
uvicorn main:app --reload

3. Frontend

Open frontend/index.html in your browser or use β€œLive Server” in VS Code.