Use this setup when you work on Neuron Runner itself. You still need Docker for sandboxes, and Redis for Channels.
Backend
bash
bash
cd backend
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
python manage.py migrate
python manage.py createsuperuser
daphne -b 0.0.0.0 -p 8000 app.asgi:applicationFor port previews, run the preview proxy in a second terminal:
bash
bash
python manage.py run_preview_proxy --host 127.0.0.1 --port 8090Frontend
bash
bash
cd frontend
npm ci
cp .env.example .env.local
npm run devThe dev server runs at http://localhost:3000 and talks to VITE_API_URL (http://localhost:8000).
Tip
Set VITE_DOCS_ENABLED=true in frontend/.env.local to preview these docs at http://localhost:3000/docs while you edit them.
Tests
bash
bash
cd backend
python manage.py check
python manage.py testbash
bash
cd frontend
npm run typecheck
npm test
npm run build