A modern full-stack application for Pay-for-Performance (P4P) tracking and checklist management with AI-powered features.
- Node.js: 18+ (verify with
node --version) - npm: Latest version (comes with Node.js)
- PostgreSQL: For database (to be configured in Story 1.2)
- Redis: For caching and background jobs (to be configured)
This is a monorepo containing:
apps/web/- Next.js web dashboardapps/mobile/- React Native mobile appinfrastructure/- Infrastructure as Code (AWS, Docker)docs/- Project documentation
git clone <repository-url>
cd crewlinkInstall dependencies for both web and mobile apps:
# Install web app dependencies
cd apps/web
npm install
# Install mobile app dependencies
cd ../mobile
npm installCopy the example environment files and fill in your values:
# Web app
cd apps/web
cp .env.example .env.local
# Edit .env.local with your configuration
# Mobile app
cd ../mobile
cp .env.example .env.local
# Edit .env.local with your configurationRequired environment variables for web app:
DATABASE_URL- PostgreSQL connection stringREDIS_URL- Redis connection stringNEXTAUTH_SECRET- Secret for NextAuth.jsNEXTAUTH_URL- Base URL for the application- AWS credentials (S3, SNS, SES)
- API keys (OpenAI, Service Autopilot, Paychex)
# Web app
cd apps/web
npm run build # Build for production
npm run dev # Start development server
# Mobile app
cd apps/mobile
npm start # Start Metro bundler
npm run android # Run on Android
npm run ios # Run on iOS# E2E tests (from root)
npm run test:e2e
# Unit tests (from app directories)
cd apps/web
npm test- Web Framework: Next.js 16+ (App Router)
- Mobile Framework: React Native 0.82+
- Language: TypeScript
- Database: PostgreSQL with Prisma ORM
- Authentication: NextAuth.js v5
- Background Jobs: BullMQ with Redis
- Cloud Services: AWS (S3, SNS, SES)
- AI/ML: OpenAI API
- Testing: Jest, Playwright
- ESLint is configured for both projects
- Prettier is configured for consistent formatting
- Run
npm run lintto check code quality
Both projects use TypeScript with strict mode enabled. Run type checking:
cd apps/web
npx tsc --noEmit
cd ../mobile
npx tsc --noEmitSee docs/architecture.md for detailed architecture documentation.
docs/PRD.md- Product Requirements Documentdocs/architecture.md- System Architecturedocs/epics.md- Epic Breakdown and Stories
[Add license information]