Backend Setup (Optional)
This guide helps you install the dependencies for the backend. Since we're using Docker, this step isn't necessary to run the app. However, the step is useful to get better IDE support and to debug docker issues.
uv
The backend uses uv to manage the virtual environment and run commands. Follow this guide to install uv on your device.
Installing Dependencies
To install the dependencies, follow these steps:
cd backend
uv sync
This will create a virtual environment in the backend/.venv directory and install the required dependencies from the pyproject.toml file.
Running the Backend
To run the backend server in the development mode, use the following command:
cd backend
uv run fastapi dev src/slidesgen/fastapi.py
The server will be accessible at http://localhost:8000.
To run the backend server in the production mode, use the following command:
cd backend
uv run fastapi run src/slidesgen/fastapi.py