Getting Started
Onboarding
Prerequisites
- Node.js 22.x (use nvm to install node)
nvm install 22.14.0 - PNPM 10.1.0 (use corepack to install pnpm) Useful commands:
corepack use pnpm@latest - Docker and Docker Compose (for running services)
bash
brew install ghostscript
brew install graphicsmagick
brew install aws-sso-util
brew install nx
brew install docker
brew install docker-composeInstallation
Clone the repository:
bashgit clone <repository-url> cd alphacodeInstall dependencies:
bashpnpm installLogin to Nx Cloud (
brew install nxif you don't have nx installed):bashnx loginCreate environment files:
- Create a
.env.devfile in theservices/codingdirectories based onservices/coding/.env-example - Create a
.env.devfile in theservices/ocrdirectories based onservices/ocr/.env-example - Create a
.env.devfile in theservices/valuationdirectories based onservices/valuation/.env-example - Create a
.env.devfile in theservices/screenflowdirectories based onservices/screenflow/.env-example - Create a
.envfile in thefrontend/directory You will find the .env files for each service in the 1Password application.
- Create a
Configure local development domain:
For local development, browsers reject cookies from IP addresses or
.localhostdomains. Configure a named domain alias instead.Add the following entries to your
/etc/hostsfile:127.0.0.1 local.beparallel.com ::1 local.beparallel.comNote: The
apiDomainin SuperTokens configuration must point to an exact API domain (e.g.,coding.app.beparallel.com), whilecookieDomaincan use a leading dot for subdomain sharing (e.g.,.beparallel.com). See SuperTokens multiple API endpoints documentation for details
Project Structure
alphacode/
├── services/ # Backend microservices
│ ├── coding/ # Coding service
│ ├── dashboard/ # Dashboard service
│ ├── screenflow/ # Screenflow service
│ ├── valuation/ # Valuation service
│ └── ocr/ # OCR service
├── packages/ # Shared packages
│ ├── nest/ # Shared NestJS utilities
│ ├── models/ # Shared domain models
│ └── utils/ # Shared utilities
├── frontend/ # React frontend application
└── docs/ # Documentation (you are here!)Next Steps
- Read the Architecture Guide to understand our DDD approach
- Check out the Services documentation