Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Grails is great. Yet, sometimes, we just need a quick, lightweight web framework. Is there such a thing out there?
Ratpack
Ratpack is inspired by the excellent Sinatra framework for Ruby, and aims to make Groovy web development more classy.
If you are utilising the Google App Engine, there is Gaelyk
I haven't used them personally but Gaelyk is built on top of Groovlets I believe: http://groovy.codehaus.org/Groovlets
Portofino is written in Java and Groovy. The basic idea of Portofino is to automatically analyze the structure of an existing database, create a basic application structure, and then customize, handle permissions, etc.
If you have an existing relational database, this is a quick and easy way to bring it on-line with a nice user interface.
How about just using spring boot and write everything in groovy.
You can use the Spring Initializr to generate a brand new project with the required stack baked in
With Grails 3 you can to create an ultralight application with the next command
grails create-app appName --profile=web-micro
Update: With Grails 3.1.0 the option is
grails create-app appName --profile=web-api
The generated application is stripped with only the necessary dependencies to create a restful api.
Caelyf - Lightweight Groovy toolkit for Cloud Foundry. Caelyf
Gretty - Simple groovy++ web framework for both building web servers and clients. Built on top of netty and NIO. groovypp/gretty
Graffiti - lightweight web framework for Groovy inspired by Sinatra
webdevwilson/graffiti
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
This might not be an acceptable question for Stack Overflow but I didn't know where else to ask the question.
Web Components has been "about to happen" for a very long time. It now appears that most browsers have most of the required pieces natively instead of using polyfills (which always worried me).
I'm wondering if Ruby On Rails is planing on moving to it or if there are any projects creating web components as well as Rails server code to take advantage of them.
I'm wondering if Ruby On Rails is planing on moving to it or if there are any projects creating web components as well as Rails server code to take advantage of them.
The webpacker gem makes it easy to include some of the JS frameworks for non-native web components like Vue or React, but you can also use it with Polymer to support native web components. We do this at my work, and we don't necessarily use webpacker for it right now but I can assure you it's a very good gem.
Here's more info: https://github.com/rails/webpacker
Here's how you'd initiate a new rails project with webpacker set up for VueJS for instance:
rails new myapp --webpack=vue
I'm not sure if rails is going to implement web-components as a built-in feature or not but the motive behind adding webpacker as default in rails 6 is to improve the integration of front-end/javascript libraries. So, you can use vue-js, react-native easily along with your rails app and build components in it.
I'm personally using many vue-js components in rails projects and having no issue with that.
P.S: Same as the question this might not be an acceptable answer :P
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
We built our own CRM for our web application which has several other functions.
Now we got the request from the management that also another web application should use our CRM.
Our current web application is a monolithic one, which means that everything is in one big web application developed with Grails.
The first idea from one DEV was to create a REST API so that they can use our CRM functionality and customers are created in our application/DB and will always get synced back to their application.
I think this is not the best idea and much better would be to screw out our CRM from the monolithic web application and make a stand-alone version of it (microservice). This stand-alone version should then be configurable for things like DB, file storage, entities, workflows, ...
What do you guys think about it and maybe does one has another good idea for this specific use case?
If you can refactor your existing CRM code into Grails plugins then you can use these plugins in your current application and future Grails applications that need CRM functionality. We are using this approach and have 10+ Grails applications in production and almost all of them are using the same set of CRM plugins.
If you like to see how we split up the domains/contexts you can find the plugins here: http://gr8crm.github.io
However we are currently in the process of migrating all CRM plugins to separate microservices (Spring Boot and Micronaut) but it's a huge effort. My advice is to think carefully before you go that route. If you can break out isolated functionality in your current monolith into microservices step by step, then it could be worth trying. But replacing all features in your current CRM with microservices will probably take longer than you expect.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am new to Groovy and Grails , I saw the Grails documentation I know the basics of grails what are the files and how to run the application. But I don't know the groovy but I knew the Java language very well, can I write java syntax code in grails like constructors,method calls or shall I learn groovy If so please provide me the groovy's documentation links I want the groovy 1.8 version.
When I started learning GRAILS then I was not very good at JAVA itself. Now, that you know JAVA language it should be pretty easy for you.
It is always better to use groovy in Grails instead of writing JAVA code as many examples and docs will be shown in groovy and would be easier for you to understand.
You could download the documentation from here: http://dist.groovy.codehaus.org/distributions/groovy-docs-1.8.9.zip
I started with groovy 1st, and had to say, that using groovy instead of java in a web-app brings huge advantages already. Grails brings it further. So yes, in order to use the full strength of Grails you have to learn groovy
I started both Groovy and Grails along with MongoDB 2 weeks back. Now I am developing a full fledged web service using Groovy and Grails with MongoDB in the backend. Stackoverflow has answer to most of the problems you might encounter.
Here are a few links that would be really useful:
http://grails.asia/grails-tutorial-for-beginners/
http://grails.org/doc/latest/guide/
Definitive guide to grails. You can download it from http://www.4shared.com/office/rEorQxoi/the_definitive_guide_to_grails.html?locale=en
Hope it helps.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
What issues or gotchas will I run into if I develop web applications in Lua; is there anything I should be aware of before starting?
Any experience with developing Lua web applications?
The web application framework based on Lua that gets a lot of discussion in the Lua community is the Kepler project. The Kepler team provides integration with web servers (especially Apache), a web server of their own, useful modules, and a working MVC application framework called Orbit.
Several other projects work with or on top of Kepler's foundation. A prominent one that demonstrates that Kepler can be used for real work is Sputnik, a very flexible and extensible CMS that functions as a Wiki out of the box but which can be extended to do many other things.
Speaking from personal experience, I built a control interface for an embedded system using Kepler's Lua Pages to render and process the forms and reports without much hassle as only my second or third real Lua project. That system is still in use and I would do it again.
take a look at http://openresty.com/ (nginx and lua/luajit, async)
Go ahead and give it a shot! Lua is a very nice language.
Another MVC framework based on Lua is also Luci.
Interesting concept. I think one of the things you need to consider is which webserver do you plan to use? I think the webserver support for Lua would be flaky at best, no offense to anyone involved but its just not a common web platform.
With that said, however, the Lua Libraries And Bindings lists quite a few components that you could seemingly leverage for your efforts. I looked the list over and all things common to the web are there: databases, regex, network, zip, crypto, xml, images, etc. There's even a couple of web frameworks, so perhaps this is less rare than I thought?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am doing a few tutorials and done some demo applications in Grails.
Suppose I have more than one project made in Grails and I want to integrate all these projects in to a single application, how do I do it?
For eg: I have made a 'To do list' and 'on-line examination' and now I want to create a new application that would incorporate both these applications.
Thanks
Another way to do this would be by re-packaging one (or both) of your projects as a plugin. That would allow you to keep them in separate code bases if you need to.
A plugin IS a regular Grails application (you can run it with grails run-app), so the switch over shouldn't be difficult.
The BEST way to create reusable modules in Grails is to package them as Grails plugins. As it was mentioned already, a Grails plugin IS a regular Grails web application (with a standard layout) with additional meta data, so it helps the GrailsPluginManager component to incorporate plugins into other applications.
I'd highly recommend the book which covers most of the aspects of the Grails plugin system pretty well. It even shows the example of how to wrap the 'regular' blogging app as a plugin and incorporate into another Grails application.
Copy all the files from one project into the other's directory structure and merge all files that are present in both - shouldn't be too many since "convention over configuration" means you don't have many global configuration files.
A diff/merge tool that handles directory diffs will probably make this much easier.