Guides
Development
Set up the Coodeen development environment and contribute.
Prerequisites
- Bun (primary runtime)
- Node.js 18+
- Git
Setup
# Clone the repository
git clone https://github.com/zahinafsar/coodeen.git
cd coodeen
# Install dependencies
bun installDevelopment Servers
# Run both API and web in parallel
bun run dev
# Run individually
bun run dev:server # API on :3099
bun run dev:web # Vite on :5173During development, the Vite dev server runs on port 5173 with hot module replacement. The API server runs on port 3099. The Vite config proxies API requests to the server automatically.
Type Checking
bun run typecheckBuilding
# Build both server and web
bun run build
# Build for npm distribution
bun run build:npm
# Dry run npm publish
bun run publish:npm:dryThe build:npm command:
- Builds the React frontend
- Generates the Prisma client
- Builds the CLI package with tsup
- Copies Prisma schema and static assets into the CLI dist
Publishing
bun run publish:npmThis builds everything and publishes the coodeen package to npm.
Project Structure
| Directory | Purpose |
|---|---|
apps/server | Hono API server |
apps/web | React frontend (Vite + Tailwind) |
apps/docs | Documentation site (Fumadocs + Next.js) |
packages/cli | CLI entry point (npx coodeen) |