2.6 KiB
2.6 KiB
Suggested Commands for Development
Package Management (Bun)
bun install- Install all dependenciesbun add <package>- Add a new dependencybun add -D <package>- Add a dev dependencybun update- Update dependencies
Development
bun run dev- Start all services in development mode (uses Turbo)bun run dev:full- Start infrastructure + admin tools + dev modebun run dev:clean- Reset infrastructure and start fresh
Building
bun run build- Build all services and librariesbun run build:libs- Build only shared librariesbun run build:all:clean- Clean build with cache removal./scripts/build-all.sh- Custom build script with options
Testing
bun test- Run all testsbun test --watch- Run tests in watch modebun run test:coverage- Run tests with coverage reportbun run test:libs- Test only shared librariesbun run test:apps- Test only applicationsbun test <file>- Run specific test file
Code Quality (IMPORTANT - Run before committing!)
bun run lint- Check for linting errorsbun run lint:fix- Auto-fix linting issuesbun run format- Format code with Prettier./scripts/format.sh- Alternative format script
Infrastructure Management
bun run infra:up- Start databases (PostgreSQL, QuestDB, MongoDB, Dragonfly)bun run infra:down- Stop infrastructurebun run infra:reset- Reset with clean volumesbun run docker:admin- Start admin GUIs (pgAdmin, Mongo Express, Redis Insight)bun run docker:monitoring- Start monitoring stack
Database Operations
bun run db:setup-ib- Setup Interactive Brokers database schemabun run db:init- Initialize all database schemas
Utility Commands
bun run clean- Clean build artifactsbun run clean:all- Deep clean including node_modulesturbo run <task>- Run task across monorepo
Git Commands (Linux)
git status- Check current statusgit add .- Stage all changesgit commit -m "message"- Commit changesgit push- Push to remotegit pull- Pull from remotegit checkout -b <branch>- Create new branch
System Commands (Linux)
ls -la- List files with detailscd <directory>- Change directorygrep -r "pattern" .- Search for patternfind . -name "*.ts"- Find files by patternwhich <command>- Find command location
MCP Setup (for database access in IDE)
./scripts/setup-mcp.sh- Setup Model Context Protocol servers- Requires infrastructure to be running first
Service URLs
- Dashboard: http://localhost:4200
- QuestDB Console: http://localhost:9000
- Grafana: http://localhost:3000
- pgAdmin: http://localhost:8080