This monorepo contains the full-stack implementation of a feature flag management system, including:
- Backend: TypeScript/Express API for feature flag management, history, and notes.
- Frontend: Next.js UI for creating, editing, and viewing feature flags.
confai-workshop/
├── apps/
│ ├── backend/ # Express/TypeScript API
│ └── frontend/ # Next.js UI
├── backlog/ # Feature specs, user stories, and design docs
├── .gitignore # Git ignore rules
├── package.json # Root scripts and dependencies
├── README.md # This file
└── ...
- Node.js (v18+ recommended)
- npm (v9+ recommended)
- PostgreSQL (or Docker for DB)
- (Optional) Docker & Docker Compose for orchestration
-
Install dependencies (root and all apps):
npm install cd apps/backend && npm install cd ../frontend && npm install cd ../..
-
Environment variables:
- Copy
.env.example
to.env
in each app and fill in required values. - Backend:
DATABASE_URL
,PORT
- Frontend:
NEXT_PUBLIC_API_URL
- Copy
cd ./infra
docker-compose up --build
- Backend:
cd apps/backend npm run dev
- Frontend:
cd apps/frontend npm run dev
- Visit http://localhost:3000
npm run lint
# Lint all appsnpm run format
# Format all appsnpm test
# Run all tests (if configured)
- Follow the dev workflow in the backlog and code review rules.
- All code must be TypeScript, strictly typed, and tested.
- See app-specific READMEs for more details.