How to create a Grails app with Webpack and VueJS? - grails

Im trying to create a Grails application (Grails 3.2.9), combined with a JS client based on VueJS 2.x and webpack.
I know there is a Webpack profile in grails, but nothing about Vuejs. Is there any documentation somewhere, any guide or sample project I could look into?
I have been able to generate a Grails app with webpack using Grails, another app with Grails and VueJS (VueJS integrated inside Grails' GSP), and a third app with webpack and VueJs (using vue-loader), but never managed to create an app with the three of them.

There is a grails guide you can follow to create custom gradle task and execute those as you need. Anyway I've created a grails 3-vuejs 2 starter project from that guide. Git repo link: https://github.com/mamunsrdr/bootvue.git.
Please follow the readme.
Edit: just a few days ago grails released new way of doing this, called application forge just like spring boot. You can follow this link. There you can pick one of many profiles, webpack is one of them.

Related

Laravel 5.1 set environment dynamically

I am using Laravel 5.1 in my application.
I want to create different config for different environment as we create in laravel 4.2.
In Laravel 4.2 we can create different environment config by creating a folder within the config directory that matches the environment name.
How can i do this in laravel5.1.
Any help greatly appreciated.
Checkout this package called "laravel-5-cascading-config"
Features :
Laravel-4 style cascading config
Nested configuration is fully supported
From laravel5.1 docs
If you are developing with a team, you may wish to continue including
a .env.example file with your application. By putting place-holder
values in the example configuration file, other developers on your
team can clearly see which environment variables are needed to run
your application.

what is the use of test/dummy folder in rails?

I am starting to learn plugin development in rails, I was wondering what is the use of the test/dummy folder in the rails plugin environment. I understand that it has all the features of a regular app but what how does this help in the plugin environment. Furthermore I was unable to find good resources online for exploring the rails plugin development system, it would be helpful if good resources were posted.
The dummy app with /test works like fixture, to provide a basic environment to run the plugin's functional/integration tests.
Because this is a plugin(actually it's a gem), even it lives in /lib currently, it should have no dependency on your real app. But functional/integration tests need a Rails app, so here comes the dummy.

How to configure rails in Intellij Idea

I have a IntelliJ Idea 11 with Ruby Plugin installed. Im trying to configure a project but the IDE doesn't recognize my views as a module. It just adds other folders (controllers, db, config)
Am I doing something wrong?
Thanks
Create a new project using a wizard for the root of your rails application (from scratch, Ruby module, add Ruby on Rails facet, Use existing Rails application):

NetBeans hangs up while creating a Rails project

I'm using NetBeans and I'm trying to create a new Rails project trought the wizard, so while I click the finish button, it creates the folder structure but the wizard never finish working and doesn't show nothing on the Projects view.
It just happens when I set up a Sqlite3 DB.
I'm using Rails 3.0.7
Can someone help me?
I have always struggled to create Rails projects using the internal netbeans wizard. Usually I find it easier to create the rails app from the command line:
rails your_app_name
This will create a new folder your_app_name in your current location, and then I create a new project within Netbeans by selecting the 'Ruby on Rails Application with Existing sources' option. And select the freshly created your_app_name folder for the Project folder.
I have found Netbeans to be less reliable with rails 3+ applications than the 2+ and find that run most rails commands directly from the terminal/command prompt.
do you have sqlite3 installed? Anyways people will be able to help you if you can post the netbeans log. Go to the command line and run netbeans from the command line. Then you can see a lot of output/logging info.

Does Grails run the Bootstrap.groovy script when deploying the app as a war?

Bootstrap executes fine during run-app (database is seeded). But it doesn't appear to get invoked when Tomcat deploys the war (nothing in the database).
Does the Bootstrap get run during war deployment? If not, is there a way to make it run?
Specifically I am wanting my sample data to seed the database.
Yes it does....
i would look to make sure you have your environments configured properly if you see thing working in development, but not production

Resources