Prerequisites
- Node.js
20.17+ - npm
- the backend
public-apirunning locally if you want to exercise the playground against a real service
Local setup
Run these commands fromfrontend/docs:
http://localhost:3006.
What the scripts do
npm run sync:openapicopiesdocs/api-spec.openapi.yamlintofrontend/docs/openapi/public-api.openapi.yamlnpm run devsyncs first and then starts Mintlify previewnpm run dev:no-opendoes the same thing without opening a browser windownpm run validate:openapisyncs first and validates the Mintlify docs build, including the mirrored OpenAPI filenpm run validateis a short alias for the same Mintlify build validation
Local API playground defaults
The starter OpenAPI document includeshttp://localhost:8082 as the local server URL because that is the checked-in default for public-api.
If your public API runs somewhere else, update the servers section in docs/api-spec.openapi.yaml, then sync again.
First customizations to make
- Replace the project name, colors, and navigation in
frontend/docs/docs.json. - Replace the starter prose on the intro and architecture pages.
- Expand
docs/api-spec.openapi.yamlas your public API grows. - Add more narrative guides before broadening the API surface.