Generate a React app from an OpenAPI 3.1 schema URL.
Install globally from GitHub:
npm install -g github:EduMake/scaffold-openapi-reactOr run directly with npx:
npx github:EduMake/scaffold-openapi-react create http://localhost:8000/openapi.json ./my-new-app --app-name MyNewAppscaffold-openapi create <apiUrl> <outputDir> [--app-name <name>]Example:
scaffold-openapi create http://localhost:8000/openapi.json ./my-new-app --app-name MyNewAppcreate: Generate a new React app from an OpenAPI schema.<apiUrl>: URL to the OpenAPI JSON document.<outputDir>: Directory where the new app is generated.
--app-name <name>: App name for generated project metadata. Defaults togenerated-app.
npm install
npm run build
node dist/index.js create http://localhost:8000/openapi.json ./my-new-app