linnovate/mean-cli

Mean package should create CRUD routes and functions rather than current routes

pratik60 opened this issue · 2 comments

Kinda like rails when we do scaffolding and generate the basic routes, instead of the current content created. It would be much better if mean package creates basic services on angular end with forms and crud functions are created on the node end. Exactly like articles in fact! Schemas can just include a title initially....In fact, we want to emphasize on test cases and TDD. So instead of blank folders, basic test suite should be created as well for that package with tests which pass.

Having developed on mean.io for the last year and so, this is what most of our packages initially constitute before it gets trickier. So I definitely see that as a better starting point.

Thoughts - Feel free to chime in, or give me a thumbs up, if you'd like this feature.

👍 for the idea, with a sidenote: whatever is done through templates (scaffolding) leads to code bloat. It seems that a lot of identical functionality will be re-generated in each package. Some OOP would do fine here, but that complicates the situation further. For now, let the scaffolder generate CRUD routes!