Make command for automating common development tasks

10 views
Skip to first unread message

swainn

unread,
Jul 20, 2016, 5:28:46 PM7/20/16
to Tethys Platform
I had an idea the other day I wanted to put out to the forum. I was thinking we could add a command to the Tethys CLI that would automate common development tasks. For example we could have a subcommand for making new pages for an app that would create a new template, add a controller, and add a UrlMap. A variation on this command could create a REST endpoint that returns a JsonResponse instead of a template. More advanced versions could generate pages with the full page maps layout and a controller with a basic MapView gizmo implemented. Basically, it would do a lot of the boilerplate for create new pages. Thoughts?

Jacob Fullerton

unread,
Jul 29, 2016, 3:10:09 PM7/29/16
to Tethys Platform
I guess my question would be who the intended audience is. For myself personally I remember first trying to create a new page and having such a hard time making sure I added every line of code in the right places. Would the command you're talking about edit the base.html so that the navigation pane would include a link to the newly created page? I like the idea of preloading gizmos into webpages, that would be a time saver if I could type a command and list the gizmos that I want included in the page and have the page generated automatically.

sdc50

unread,
Aug 3, 2016, 9:29:01 AM8/3/16
to Tethys Platform
I'm really like this idea. I think this would be a good way to implement layouts. I think it would be good to have a design meeting for this. It may be larger than a one person implementation.

swainn

unread,
Aug 3, 2016, 10:46:31 AM8/3/16
to Tethys Platform
Agreed.
Reply all
Reply to author
Forward
0 new messages