Development Setup

January 12, 2026 ยท View on GitHub

Complete guide to setting up your IntellyWeave development environment.

Prerequisites

SoftwareVersionCheck Command
Python3.12python3.12 --version
Node.js18+node --version
pnpmLatestpnpm --version
DockerLatestdocker --version
GitLatestgit --version

Quick Setup

The fastest way to get started:

git clone https://github.com/vericle/intellyweave.git
cd intellyweave
scripts/setup.sh

Manual Setup

1. Clone Repository

git clone https://github.com/vericle/intellyweave.git
cd intellyweave

2. Start Local Weaviate

docker compose up -d weaviate

Verify it's running:

curl http://localhost:8080/v1/.well-known/ready

3. Set Up Backend

cd backend

# Create virtual environment
python3.12 -m venv .venv
source .venv/bin/activate

# Install dependencies
pip install --upgrade pip
pip install -e ".[dev]"

# Optional: Install NER support
pip install -e ".[ner]"

# Create environment file
cp .env.example .env

Edit backend/.env with your API keys:

WEAVIATE_IS_LOCAL=True
OPENAI_API_KEY=sk-proj-your-key

4. Set Up Frontend

cd ../frontend

# Install dependencies
pnpm install

# Optional: Configure Mapbox
cp .env.example .env.local
# Edit with your Mapbox token

Running Development Servers

scripts/dev.sh

This starts both servers:

Option 2: Separate Terminals

Terminal 1 - Backend:

cd backend
source .venv/bin/activate
elysia start

Terminal 2 - Frontend:

cd frontend
pnpm run dev

Development Workflow

flowchart TD
    A[Create Feature Branch] --> B[Make Changes]
    B --> C{Backend or Frontend?}
    C -->|Backend| D[Run pytest]
    C -->|Frontend| E[Run pnpm lint]
    D --> F{Tests Pass?}
    E --> F
    F -->|Yes| G[Commit Changes]
    F -->|No| B
    G --> H[Push & Create PR]

1. Create Feature Branch

git checkout -b feat/your-feature

2. Make Changes

Edit files in backend/ or frontend/.

3. Test Changes

# Backend tests
cd backend && pytest tests/

# Frontend lint
cd frontend && pnpm test

4. Commit

git add .
git commit -m "feat: description of change"

5. Push and PR

git push origin feat/your-feature

Create PR on GitHub.

IDE Setup

VS Code

Recommended extensions:

  • Python (Microsoft)
  • Pylance
  • ESLint
  • Tailwind CSS IntelliSense
  • Prettier

Settings (.vscode/settings.json):

{
  "python.defaultInterpreterPath": "./backend/.venv/bin/python",
  "python.formatting.provider": "black",
  "editor.formatOnSave": true,
  "[python]": {
    "editor.defaultFormatter": "ms-python.black-formatter"
  }
}

PyCharm

  1. Open backend/ as project root
  2. Set interpreter to backend/.venv/bin/python
  3. Mark backend/elysia as Sources Root

Environment Variables

Required for Development

VariablePurpose
WEAVIATE_IS_LOCAL=TrueUse local Docker
OPENAI_API_KEYAt least one LLM

Optional

VariablePurpose
MAPBOX_ACCESS_TOKENEnable maps
ANTHROPIC_API_KEYAlternative LLM
LOGGING_LEVEL=DEBUGVerbose logs

Common Issues

Port Already in Use

scripts/kill-process.sh 8000
scripts/kill-process.sh 3000

Virtual Environment Issues

rm -rf backend/.venv
cd backend
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Weaviate Connection Failed

# Check if running
docker compose ps

# Restart
docker compose restart weaviate

# Check logs
docker compose logs weaviate

pnpm Errors

cd frontend
rm -rf node_modules pnpm-lock.yaml
pnpm install

See Also