gotham-rs / gotham

A flexible web framework that promotes stability, safety, security and speed.
https://gotham.rs
Other
2.23k stars 125 forks source link

Gotham task automation - commands and templates #34

Open bradleybeddoes opened 7 years ago

bradleybeddoes commented 7 years ago

It would be nice to automate some of the core developer activities around Gotham projects. Creating a Middleware, initiating a new web-app, adding a Controller all come to mind, there are likely to be many other things we'd like to automate in the future if other frameworks are anything to go off.

The Diesel approach of shipping a standalone cli tool might be worth considering. This is also how Rails and Phoenix approach the problem.

It would also be prudent to keep the ongoing discussion around Cargo and template support front of mind.

jdno commented 5 years ago

This is a great idea.

The difficulty I see is that the helpfulness of automation does not come from the automation itself, but from the conventions that enable the automation in the first place. For example, a recommended project structure must exists before it can be generated by a tool. As a newcomer to Gotham I am not sure what the current conventions are. Is this something that makes sense to explore more now?