2.5 KiB
2.5 KiB
Quickstart Guide
Getting Started
Prerequisites
- Node.js >= 18.0.0
- pnpm >= 8.0.0
- Docker (for local development services)
- Git
Initial Setup
-
Clone the repository
git clone <repository-url> cd the-order -
Install dependencies
pnpm install -
Start development services (PostgreSQL, Redis, OpenSearch)
docker-compose up -d -
Build all packages
pnpm build -
Start development servers
pnpm dev
Development Workflow
-
Work on a specific package
cd packages/ui pnpm dev -
Work on an app
cd apps/portal-public pnpm dev -
Work on a service
cd services/intake pnpm dev
Running Tests
# Run all tests
pnpm test
# Run tests for a specific package
pnpm --filter @the-order/ui test
# Run tests in watch mode
pnpm --filter @the-order/ui test:watch
Adding Git Submodules
To add external repositories as submodules:
./scripts/add-submodules.sh
Or manually:
git submodule add <repository-url> services/omnis-brand
git submodule update --init --recursive
Environment Variables
- Copy
.env.exampleto.env.localin each workspace - Configure required environment variables
- For secrets, use SOPS (see
docs/governance/SECURITY.md)
Building for Production
# Build all packages and apps
pnpm build
# Build specific workspace
pnpm --filter @the-order/portal-public build
Deployment
See infra/README.md for infrastructure and deployment documentation.
Next Steps
- Review the README.md for detailed documentation
- Read CONTRIBUTING.md for contribution guidelines
- Check SECURITY.md for security policies
- Explore the architecture in docs/architecture/
Troubleshooting
Issues with dependencies
# Clean and reinstall
pnpm clean
pnpm install
Issues with Docker services
# Restart services
docker-compose restart
# View logs
docker-compose logs -f
# Reset services
docker-compose down -v
docker-compose up -d
TypeScript errors
# Run type checking
pnpm type-check
# Clean build artifacts
pnpm clean
pnpm build
Getting Help
- Check the documentation
- Open an issue
- Review architecture decisions