Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absorbing Scaffold and CRUD Bootstrapping Features #10533

Open
DrewWeth opened this issue Feb 9, 2021 · 2 comments
Open

Absorbing Scaffold and CRUD Bootstrapping Features #10533

DrewWeth opened this issue Feb 9, 2021 · 2 comments

Comments

@DrewWeth
Copy link

DrewWeth commented Feb 9, 2021

Is your proposal related to a problem?

No, I created a project that writes basic CRUD components for new React projects and I want to see if there's any interest in moving these features into a module or directly into create-react-app

Here is my project that I would be willing to bring into some kind of module accessible from create-react-app. Sorry if this seems like advertising, I think the README will help explain some of the features.

I made a project that allows a user to use one command to create components to manage CRUD resources. It creates presentation pages, forms, and logic for managing the user-defined models.

react-scaffold-generate generate Inventory \
    name:string \
    description:string:textarea \
    isSold:boolean \
    seller:string:email

Here's the project for more info:
https://github.com/DrewWeth/react-scaffold-generate

Here's a live demo of what the one-command adds to the standard create-react-app
http://rsg.drewweth.com/

Describe the solution you'd like

Im frustrated when I have to bootstrap CRUD (create, read, update, delete) interfaces on a new app.

I would like to rewrite and export the functionality from my project into a module accessible via create-react-app

Describe alternatives you've considered

I've looked for projects with similar features, but can't find one. This is based on Ruby on Rails's scaffolding project which I think is so powerful and isn't equally duplicated anywhere for React.

Additional context

I'm just seeing if there is any interest or where I should more appropriately have this discussion.

@kubk
Copy link

kubk commented Feb 12, 2021

I believe it should a separate package. I am not using material UI, why should I download this module into my app while bootstrapping CRA? The main issue that there is no default way to manage forms, state, routing in React world. There are plenty of libraries and opinions. Also, there are advanced CRUD libraries like react-admin: https://marmelab.com/react-admin/

@DrewWeth
Copy link
Author

So you're saying there's a chance? I can remove Material UI it's just or making the base form look not terrible.

True there are not default ways, but there are desire paths that I see a lot of projects take that have some common patterns. I'll take a look at react-react more, it looks like a continuation of this idea. I think the power in react-scaffold-generate is the quick prototyping of model generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants