Document management system

Tags

I found a good platform for document management and collaboration:

https://owncloud.org/

Advertisements

Grails + AngularJS as web framework

Recently I am trying to build a website with backend grails and front-end Angularjs. By struggling with folder structure to start , I found a good plugin by Craig:

https://github.com/craigburke/lazybones-angular-grails

To just use it , these commands are usually required:


lazybones create angular-grails myProject

./gradlew grails-create-domain-class -PgrailsArgs=MyDomainClassName

lazybones generate module -PmoduleName=myDomainClassName -PdomainClass=MyDomainClassName

./gradlew run

To open the Gradle project in IntelliJ IDEA, simply run the following task from the root:


./gradlew idea

The first build of Gradle from IDEA will fail. Launching a second build fixes the compilation error. From http://gradle.org/

To change the template which is used to generate code inside the plugin, we need to change the code inside the src/templates (Sources:templates). We can refer to lazybones template guide. The lazybones template reference is https://github.com/pledbrook/lazybones/wiki/Template-developers-guide

To use spring sercurity quick start , we can use the command:

 ./gradlew grails-s2-quickstart -PgrailsArgs='com.company User Role'

 

production phase:

./gradlew -PgrailsEnv=production grails-run-app

If you want to pass in some arguments, you can do so via the grailsArgs project property:

./gradlew -PgrailsArgs='--inplace solr' grails-create-plugin

 

Change grails server url:

in grails-app/conf/Config.groovy

environments {
production {

grails.serverURL = "http://localhost:8080" // Specify the root of your link
....
}

development {
grails.serverURL = "http://localhost:8080/${appName}"
...
}
...
}

And add another line into Config.groovy:

grails.app.context = '/'

In order to access from port 80 , please refer https://workdiaryyy.wordpress.com/2015/12/18/port-80-permission-denied-for-web-service/

References:

https://github.com/pledbrook/lazybones/wiki/Template-developers-guide

http://gradle.org/

https://github.com/grails/grails-gradle-plugin

https://github.com/craigburke/lazybones-angular-grails

http://stackoverflow.com/questions/4989528/launching-a-grails-app-through-intelli-j-with-root-set-to-localhost8080-instea