Development Setup
Prerequisites
- Python 3.12+
- Node.js 22+
- Docker and Docker Compose (optional)
- uv (Python package manager)
Initial Setup
-
Clone the repository
git clone https://github.com/bookcard-io/bookcard.git
cd bookcard
-
Install dependencies
# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create virtual environment and install dependencies
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv sync --group dev
-
Set up frontend
-
Configure environment
Create a .env file:
BOOKCARD_JWT_SECRET=dev-secret-key
ADMIN_USERNAME=admin
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=admin123
-
Start development servers
This starts both the FastAPI backend (port 8000) and Next.js frontend (port 3000).