This guide explains how to set up your local environment and perform common development tasks.
npm install
# Generate initial translations
backend\.venv\Scripts\python.exe scripts\manage_locales.py split
# Start dev server
npm run dev
cd backend
python -m venv .venv
# Activate venv
.venv\Scripts\activate
# Install deps
pip install -r requirements.txt
# Run server
python -m uvicorn main:app --port 8000 --reload
The localization system is the heart of the project's multi-language support.
src/locales/master_user/ or master_admin/.backend\.venv\Scripts\python.exe scripts\manage_locales.py split.{{ t('category.key') }}.backend/migrations/ (e.g., 004_add_user_preferences.sql).Run the migration script:
python backend/run_migrations.py
Update Pydantic models in backend/schemas.py.
Backend Tests: Located in backend/tests/. Run with pytest.
pytest backend/tests
Frontend Tests: Located alongside components as *.test.ts. Run with npm run test.
<script setup>. Follow Tailwind's utility-first approach but keep complex styles in index.css if necessary.npm run lint passes before committing..env files).legacy/ folder clean; move only truly obsolete scripts there.