jedireza / aqua

:bulb: A website and user system starter
https://jedireza.github.io/aqua/
MIT License
1.38k stars 356 forks source link

CRUD extension #211

Closed bennycode closed 7 years ago

bennycode commented 7 years ago

I really like aqua and it's modular approach. It's great that you make use of confidence, dotenv and hapi. The aqua project is a perfect example for the Separation of concerns design principle!

Do you plan to build another layer on top which allows easily to boostrap CRUD applications? Because this might be the next thing which people want to do after setting up a system which provides user authentication and since you already provide a connection to a database it would be just breat if you would provide an easy way to write (and maintain) custom data sets.

jedireza commented 7 years ago

Thanks @bennyn 🖖

Do you plan to build another layer on top which allows easily to boostrap CRUD applications? Because this might be the next thing which people want to do after setting up a system which provides user authentication and since you already provide a connection to a database it would be just breat if you would provide an easy way to write (and maintain) custom data sets.

In what way exactly? Is there something similar you've seen that you could link to? I ask because most of the admin screens are essentially CRUD.

bennycode commented 7 years ago

@jedireza What I was thinking of is a scaffolding system (working like the one from Ruby on Rails, Getting Up and Running Quickly with Scaffolding), which helps the developer to bootstrap a new database model including it's controller and basic view.

I know that Sequelize supports commands like this (to create a database model):

sequelize model:create --name TodoItem --attributes content:string,complete:boolean

It would be great if you could do something similar with aqua, so that it creates a new model and links it in the code where it should be linked to provide basic CRUD operations for the newly created entity.

jedireza commented 7 years ago

Ah I see. I agree, that would be great.

It does take the project down a road that's closer to being a framework and I've generally avoided that. I'd be happy if someone wanted to contribute this and we could feel comfortable with the maintenance burden it could add.