-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic code generation for Fluent #176
Comments
I think this could be done step by step as they did:
|
Obsolete thanks to Codable? |
Although this might not be what you want, but we recently created this repo for sharing our sourcery templates for faster scaffolding of Vapor code: https://github.com/nodes-vapor/sourcery-templates Sorry for the lack of documentation at this point. |
Could you precise what you mean? That thanks to Codable, we can hope for
things like automatic REST api for databases and such? This can be good.
But templates would be useful too.
…On 18 September 2017 at 17:43, Joannis Orlandos ***@***.***> wrote:
Obsolete thanks to Codable?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#176 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AACIKaw-LyvskMhhW5REPOYMp6_ZyEh2ks5sjo-fgaJpZM4NmsaY>
.
|
@brunobl most of this can be easily taken over using Swift 4's Codables. They generate boilerplate code for your database, JSON and other models. |
Closing as a dupe of #397 |
It would be great to enhance vapor cli to add something similar to phx.gen, ie automatic code generator for model and controller based on a quick model description.
http://www.phoenixframework.org/docs/ecto-models
At least the phx.gen.api side at first would be useful. (their documentation isn't up to date, it's now called phx.gen.api instead of phoenix.gen.api)
The text was updated successfully, but these errors were encountered: