Grails/groovy with postgre. Grails is so ridiculously simple to set up and code with... you can literally parse JSON out of a request and map it to an object with "Object yourObject = request.getJSON". Then you can save it with another line like "yourObject.save()".
I agree, building crud in grails is really fast. I'm just sorry grails is not so much adopted.
Ask HN: What stack would you use to build a CRUD web app on the JVM today?
81–90 of 213 posts
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#82Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#83Still, it works, it's easy to learn, there's a rich assortment of plugins for adding functionality, GSP's are nice, it's easy to make custom taglibs, etc., etc.
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#84Grails, I really like Groovy as a language. Grails provides a lot out of the box and is good enough performance wize for small to medium sites with no tuning.
this is a comment posted yesterday criticizing the management of Groovy - https://news.ycombinator.com/item?id=10293508
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#85Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#86But if your project is only going to be a crud app with limited traffic volume/life time, I'd personally probably pick an interpreted language and framework.
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#87I would not start with technology stack and build around them. You look at your use cases and build out. Pick your frameworks and databases judiciously and as late as possible. Read: https://blog.8thlight.com/uncle-bob/2012/05/15/NODB.html Read: http://www.amazon.co.uk/Growing-Object-Oriented-Software-Gui... [EDIT] Removed the unnecessary/unhelpful opening statement.
"simple CRUD app"
That is more than sufficient to pick a framework/database and start working. I'm not sure how many simple CRUD apps you have built, but the challenge tends to come when you put them in front of users who can't figure out the interface. Consequently, I'd argue to choose a framework quickly and get it in front of a user as fast as you can.
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#88I second Play Framework. Have used it and Scala is a very nice language to learn. If I had invested in so much into the JVM, Play Framework would be it. But, if it's just a simple CRUD app, and if you had a choice, I'd recommend you to give Ruby on Rails a try. Hope this helps!
Scala and Play is a great choice. Another good Scala framework is Lift: http://liftweb.net/ If JVM is not a must, consider using Meteor.
If JVM is your only choice because you want to connect to legacy Java API, consider wrapping the Java API with REST interfaces and use them with Meteor.
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#89I second Play Framework. Have used it and Scala is a very nice language to learn. If I had invested in so much into the JVM, Play Framework would be it. But, if it's just a simple CRUD app, and if you had a choice, I'd recommend you to give Ruby on Rails a try. Hope this helps!
I agree. And I'd add that the continuous compilation of the Play framework allows for a great, fast workflow. Even in combination with non-JVM compilation like for Typescript. The last version comes with Slick integration which brings Ling-for-Sql style persistency to the JVM. In combination with support for Postgress JSON persistency that makes for a great fast prototyping stack.
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#90Scala
Spark - http://sparkjava.com
ScalikeJDBC - http://scalikejdbc.org
Postgres
Coming from Rubyland (and AR specifically), I despise writing a bunch of dao/repo code, so I've resorted to codegen-ing my daos/repos.
Frontend:
Aurelia - http://aurelia.io