generator-react-swagger
v1.0.11
Published
react swagger code generator
Downloads
4
Keywords
Readme
README
This README would normally document whatever steps are necessary to get your application up and running.
What is this repository for?
- This generates a Front End react app with just a swagger api url
Tools Used
- Swagger
- OpenAPI v3
- SwaggerHub
- Swagger Parser
- OpenAPI Codegen
- Yeoman
- Plop
- React
- Create React App
- Handlebars
- Embedded JS
How do I get set up?
- Have swagger URL ready: ie.
https://petstore.swagger.io/v2/swagger.json
- Create and navigate to new directory:
mkdir new-dir && cd new-dir
- Install generator:
npm install -g generator-react-swagger
- Run generator:
yo react-swagger
- Follow Prompts
- Run codgen with swagger-title in lowercase to generate api
npx openapi-codegen gen [swagger-title]
Who do I talk to?
- Cody Taft
TODO
- add webpack to template for ts support
- perhaps run create-react-app as part of template
- find a simple JS generator