-
1. Re: [forge-dev] iOS Scaffolding
gastaldi Feb 18, 2014 3:08 PM (in response to sebi2706)This sounds very interesting. Let us know how can we help in the Forge side.
On 18-02-2014 14:05, Sebastien Blanc wrote:
Hi Folks !
While I was watching Matzew's screencast[1] about using the AeroGear
iOS Template (which bootstrap/help to create a new iOS project) I was
thinking about pushing the concept even further.
Wouldn't it be nice to be able to scaffold a complete CRUD Native iOS
app ? And of course by using the bullets we already have : Forge.
The idea would be to have the same stuff as the HTML5 Scaffolding
plugin/addon but instead of generating JS and html files we generate
*.h and *.m files (and of course a complete iOS app structure). The
general workflow would stay the same : create a JEE project, generate
entities, generate REST endpoints and scaffold the client.
So basically all we would have to do is to write those templates (+
some code to write to the correct location / create the skeleton).
I will be glad to start on this but I would need some help from the
iOS gurus for one thing : having a clean iOS CRUD App from which I
could reverse engineer/extract the templates. This app, while staying
simple, should contain all the possible use cases : String, numbers,
boolean, Date but also some relation between entities (1-to-1,
1-to-many) :
I started with this simple idea :
|Team {
name : String
hasMany : Player
hasMany: Tournamenent // many-to-many
}
Player {
name : String
dateOfBirth: Date
injured: boolean
hasOne : Team
}
Tournament {
name: String
price : number
hasMany: Team
}
|
|
|
The gist is here https://gist.github.com/sebastienblanc/9074932
So, if anyone would like to create this app, I could start from there
with a first draft. I will also try on my side but my objective-c
skills are not really good enough right now
I think that could be a very cool feature.
A last very important remark : you can reread this message and replace
iOS with Android because once we got it shaped for iOS we could do
exactly the same for Android.
Sebi
>
_______________________________________________
forge-dev mailing list
-
att1.html.zip 2.0 KB
-
-
2. Re: [forge-dev] [aerogear-dev] iOS Scaffolding
corinnekrych Feb 19, 2014 3:11 AM (in response to sebi2706)On 18 Feb 2014, at 18:05, Sebastien Blanc <scm.blanc@gmail.com> wrote:
Hi Folks !
While I was watching Matzew's screencast[1] about using the AeroGear iOS Template (which bootstrap/help to create a new iOS project) I was thinking about pushing the concept even further.
Wouldn't it be nice to be able to scaffold a complete CRUD Native iOS app ? And of course by using the bullets we already have : Forge.
You would generate server and client side at once?
The idea would be to have the same stuff as the HTML5 Scaffolding plugin/addon but instead of generating JS and html files we generate *.h and *.m files (and of course a complete iOS app structure). The general workflow would stay the same : create a JEE project, generate entities, generate REST endpoints and scaffold the client.
So basically all we would have to do is to write those templates (+ some code to write to the correct location / create the skeleton).
I would start with an app generated with iOS template for simple Pipe, and then add to it. See my questions below.
I will be glad to start on this but I would need some help from the iOS gurus for one thing : having a clean iOS CRUD App from which I could reverse engineer/extract the templates. This app, while staying simple, should contain all the possible use cases : String, numbers, boolean, Date but also some relation between entities (1-to-1, 1-to-many) :
With Pipes and Stores, we use more a Key/Value approach. Not sure what you have in mind to represent relation.
In term of UI what do you want to see?
first screen: Team TableView with static table cell, Players and Tournaments cell link to second screen TableView
second screen: Player TableView with a list of player displaying only name, selecting a player will go to third screen Player details
third screen: Player Details static table view with date display etc…
Then we might need a descriptive/configurable way of saying to forge this is my main screen, on that list display ‘player name’ etc…
What’s your view on that?
I started with this simple idea :
Team {
name : String
hasMany : Player
hasMany: Tournamenent // many-to-many
}
Player {
name : String
dateOfBirth: Date
injured: boolean
hasOne : Team
}
Tournament {
name: String
price : number
hasMany: Team
}
The gist is here https://gist.github.com/sebastienblanc/9074932
So, if anyone would like to create this app, I could start from there with a first draft. I will also try on my side but my objective-c skills are not really good enough right now
team work
I think that could be a very cool feature.
A last very important remark : you can reread this message and replace iOS with Android because once we got it shaped for iOS we could do exactly the same for Android.
make sense
Sebi
_______________________________________________
aerogear-dev mailing list
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev