contiamo / restful-react

A consistent, declarative way of interacting with RESTful backends, featuring code-generation from Swagger and OpenAPI specs 🔥
MIT License
1.87k stars 109 forks source link

Boilerplate from one openapi spec #355

Open dwebfan opened 3 years ago

dwebfan commented 3 years ago

Is your feature request related to a problem? Please describe. Thanks for the project helping people to auto-generate most codes easily. But it would be great to also generate the whole project as boilerplate if possible.

Describe the solution you'd like Similiar as https://github.com/pankod/next-boilerplate, if people can run cli by providing one openAPI spec, one project can be autocreated, even some simple layout can be created, it would be super useful for any new people.

Describe alternatives you've considered

Additional context

fabien0102 commented 3 years ago

Hi @dwebfan, thanks for the idea!

Just a little question to make sure I do really understand what you want: What do you have in mind as flow?

  1. A plugin for https://github.com/pankod/superplate#creating-a-plugin
  2. a little restful-react init to help you bootstrap the config?
  3. or something else?
dwebfan commented 3 years ago

yes, #1 and #2 is exactly what I mean. I feel superplate has bootstrap one project capability but lack of openAPI support, and also mainly focus node.js backend, not open for other language. But your project can leverage openAPI spec and auto-create UI sides codes, so I feel they are complementary, and the integration btw this two projects would be very powerful.

fabien0102 commented 3 years ago

I like the idea, if you want to play with a superplate plugin, please do it and we can add the plugin in the README.md

For the restful-react init this is my todolist since a long time, I'm just missing time for side projects 😅