Getting Started
This guide covers setting up the Helix project for local development. It has been synchronized to match the exact stack and commands used in the active repository.
Prerequisites
Ensure you have the following installed before beginning:
- Node.js: v20 or newer
- Python: v3.12 or newer
- Package Managers:
npm(for Node) andpiporuv(for Python) - Database: PostgreSQL (Local or Remote, e.g. Neon)
- Docker: (Optional) For running infrastructure services locally
Repository Structure
Helix/
├── backend/ # FastAPI Backend
├── frontend/ # Next.js App Router Frontend
├── docs/ # MkDocs Portal (You are here)
├── Makefile # Automation commands
└── mkdocs.yml # Docs config
Backend Setup (FastAPI)
Helix uses a Python async backend powered by FastAPI.
- Navigate to the backend directory:
- Create and activate a virtual environment:
- Install dependencies:
- Set up environment variables:
Copy
.env.exampleto.envand fill in your PostgreSQLDATABASE_URLandGEMINI_API_KEY. - Run the server:
Frontend Setup (Next.js)
Helix uses a modern React frontend powered by Next.js 14 and TailwindCSS.
- Navigate to the frontend directory:
- Install dependencies:
- Set up environment variables:
Copy
.env.exampleto.env.local. SetNEXT_PUBLIC_API_URLto point to your backend. - Run the development server:
Using the Makefile
For convenience, Helix includes a Makefile at the root of the repository to automate common tasks:
make dev: Start both the backend and frontend development servers concurrently.make lint: Run code linters (ruffandeslint).make format: Auto-format Python code usingruffandblack.make docker-up: Start local infrastructure via Docker.
Running Tests
To execute tests for the backend (using Pytest) and build the frontend, you can use: