Local Development
Singularity is a monorepo, not a single root application. Install and run only the component you are changing.
Prerequisites
Depending on the component, you will need PHP 8.3+, Composer, Node.js 22+, npm, Docker, Rust/Anchor, or Godot 4. Start with the component README because native and contract toolchains have additional requirements.
Laravel application
cd backend/laravel
composer install
npm install
cp .env.example .env
php artisan key:generate
php artisan migrate
composer run devUseful checks:
composer run ci:check
php artisan test --compact
vendor/bin/pint --dirty --format agent
npm run test:frontend
npm run buildThe nested backend/laravel/AGENTS.md is authoritative for Laravel and Vue changes.
Ritual DEX
cd frontend/ritual
npm install
npm startProduction verification must leave both frontend/ritual/build/index.html and frontend/ritual/build/static/ present.
EVM contracts
cd crypto/hardhat
npm install
npx hardhat testThe Hardhat configuration expects DEPLOYER_PK. Use a throwaway local key for compile and test work. Never place a funded deployment key in a command, tracked file, or test fixture.
Solana programs
cd crypto/anchor
npm install
anchor build
anchor testContract outputs under target/ and the local test-ledger/ are generated and must not be edited manually.
Documentation
cd docs
npm install
npm run devBefore committing documentation changes:
cd docs
npm run buildThe production output is generated under docs/.vitepress/dist/ and is not committed.
Blockscout deployment configuration
cd services/blockscout/docker-compose
docker compose configOnly run docker compose up when you intentionally want to start the explorer stack. Configuration validation is sufficient for ordinary documentation or deployment-file review.
Working-tree safety
Check git status --short before and after edits. Existing modifications belong to the person working in the repository; do not overwrite or reformat unrelated files. Generated dependency, build, cache, runtime, and ledger directories are excluded from normal source work.