Development Setup
Set up FexAPI for local development.
Prerequisites
- Node.js 18+
- pnpm 10+
Clone and Install
bash
git clone https://github.com/shreeteja172/fexapi.git
cd fexapi
pnpm installProject Structure
fexapi/
├── apps/
│ ├── cli/ # the FexAPI CLI package
│ ├── docs/ # documentation site (VitePress)
│ └── web/ # landing page
├── packages/ # shared packages
├── turbo.json # Turborepo config
└── pnpm-workspace.yamlDevelopment
Build all packages:
bash
pnpm buildWatch the CLI for changes:
bash
cd apps/cli
pnpm devRun the docs site locally:
bash
cd apps/docs
pnpm devTesting Changes
After making changes to the CLI:
bash
cd apps/cli
pnpm build
node dist/index.js --helpLinking Locally
To test the CLI as a global command:
bash
cd apps/cli
pnpm link --global
fexapi --help