Don't wait. Write it yourself. Seriously, if my solution does most of what you want, but it's not quite right, it's very easy to change it. Just hack the templates.
Regards Simon On Mon, May 15, 2017 at 4:41 PM, Tong Sun <suntong...@gmail.com> wrote: > Quite agree with the following. > > scaffolding just like symfony/RoR scaffold generator! That's something I > had been hoping and looking for for quite a while. > > Thanks a lot! > > > On Thursday, May 11, 2017 at 4:37:44 AM UTC-4, mhh...@gmail.com wrote: >> >> It s awesome, >> in my opinion, this is the way i want to consume go in the future. >> >> pragmatic, correct, fast, repeatable. >> >> in additions to what go provides, >> fast build, cross platform, easy to package >> >> Although, my very personal opinion, >> lets do smaller program that combines together, >> in the spirit of unix tooling, rather than a >> big boiler plate thing in the spirit of symfony >> or alike (really just an example sorry i cited your project). >> >> A big Yes for such projects! >> >> Let s generate all the thing and get drinks to talk about it :D >> >> PS: i remember you talked about it earlier, shame i missed it at that >> time. >> >> On Wednesday, May 10, 2017 at 6:31:22 PM UTC+2, Simon Ritchie wrote: >>> >>> Given a JSON description of some database tables, the scaffolder tool >>> creates the database and generates a web application server to manage it. >>> The resulting app server implements the Create, Read, Update and Delete >>> (CRUD) operations on the tables. >>> >>> The idea for the scaffolder comes from the Ruby-on-Rails scaffold >>> generator. >>> >>> The app server is presented as Go source code and HTML templates, plus >>> some unit and integration tests. The design follows the Model, View >>> Controller (MVC) pattern. The HTTP requests follow the REST pattern. >>> >>> The tool is here: https://github.com/goblimey/scaffolder >>> >>> There are some screen shots of the resulting web pages here: >>> http://www.goblimey.com/scaffolder/2.4.running.the.server.html >>> >>> Producing any web application involves a lot of boilerplate work, and >>> this tool aims to automate some of that without imposing too many design >>> decisions on the result. >>> >>> The generated web pages are fairly primitive, with very little styling. >>> This is deliberate - if you want to use the result as a basis for building >>> your own application, you will want to define your own styling, and the >>> pages are structured to allow that. >>> >>> The material produced by the scaffolder is defined by a set of text >>> templates. For each table it produces from these templates a model, a >>> controller and set of HTML templates to produce the views. (So we have >>> templates producing templates.) >>> >>> The scaffolder tool itself is very simple. It just reads the JSON >>> specification into a data structure, enhances that data a little and then >>> iterates through it, supplying it to the templates. This approach makes >>> the tool very flexible - if it doesn't do quite what you want, it's very >>> easy to tweak it. >>> >>> This idea of using a simple driver program, JSON data and templates to >>> generate a result is very powerful. It can be used to produce all sorts of >>> material that follows a prototypical pattern. >>> >>> All comment on this project are welcome. >>> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/golang-nuts/_WxygmYF1F8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.