Skip to content
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

Idea: scaffolding generators #95

Open
andrewhavens opened this issue May 8, 2015 · 4 comments
Open

Idea: scaffolding generators #95

andrewhavens opened this issue May 8, 2015 · 4 comments

Comments

@andrewhavens
Copy link
Collaborator

Hello! This is a continuation of a conversation that started on Twitter. Just creating this issue to start the conversation around this feature.

It would be really useful to have a scaffolding generator, much like Rails, which would provide the basic CRUD operations. This would also serve as an example of how to wire up views, create forms, and work with CDQ. A simple ToDo list example app would go a long way in helping beginners to learn iOS/ProMotion/RedPotion. I don't know of anything like that.

Another common task is working with an API. Another potential scaffolding generator could be the same CRUD operations using AFMotion instead of CDQ.

Let me know what the next steps would be in implementing this. I'm happy to help. Though I must admit that I'm still relatively new to iOS/RubyMotion development.

@twerth
Copy link
Member

twerth commented May 8, 2015

It's a good idea. I was thinking of doing a screencast of this also. We can do the CDQ now. We're still working on the best practices for API/Json; we've done it 10 different ways.

@twerth
Copy link
Member

twerth commented May 10, 2015

@andrewhavens actually what would be a great help is to come up with the "simple ToDo" list example app". Define its requirements. I can program it. I've been wanting to create an example video that uses CDQ.

Or you and I can program it. If you have time you can start it then I can suggest any improvements (idiomatic RedPotion stuff).

It should be as simple as possible, but be functional and then we can add a bit of "wow" to it. Once it's programmed, then I can record myself rewriting it for the video. Plus we'd have the actual code.

You could also put it in your own repo if you like.

Just thinking out loud.

@andrewhavens
Copy link
Collaborator Author

Hi @twerth, sorry for taking over a year to respond to this! Now that I have a lot more experience with RedPotion, I've taken the liberty of building the example Todo list app. https://github.com/andrewhavens/redpotion_todos_app_example

Now that we have this codebase, I'd like for you to review it (and anyone else who would like to review), then I will get started building the generators for this. In the readme I've listed a few examples and diffs of the code that I expect to be generated.

Let me know what you think. Thanks!

@andrewhavens
Copy link
Collaborator Author

Just wanted to update this thread to say that I've made some progress on this lately. I created a new gem called redpotion-generators that provides some nice scaffolding generators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants