Guides
Local Development
Run Morface locally for product development, API verification, and docs preview.
Local Development
Use the public API docs to integrate Morface from your backend. Use this page when you also need the Morface application itself running locally.
Prerequisites
- Node.js
>=20.6.0 pnpm- A configured
.env.development - Database access for app routes that depend on account, jobs, billing, or auth state
Install and start
git clone [email protected]:morfaceai/morface.git my-morface-project
cd my-morface-project
pnpm install
pnpm devThe app starts with Next.js App Router and Turbopack.
Useful local routes
/docsfor the developer documentation site/account/api-keysto create and revoke API keys/pricingto inspect plan positioning and credits/showcaseto review product-facing demos
Environment notes
- Keep
.env.developmentaligned with the database and storage targets you want to test. - Public API routes under
/api/v1require a valid API key created from the account area. - If you change docs content or navigation metadata, regenerate Fumadocs artifacts so the page tree stays fresh.
Verification commands
pnpm exec tsc --noEmit
pnpm testFor targeted job stack checks, the repository also exposes verify commands such as:
pnpm run verify:job-api-validationpnpm run verify:job-api-request-guardpnpm run verify:job-api-workflowpnpm run verify:job-api-route-post
Next step
If your goal is server integration rather than local app development, continue to API Quickstart.