grails 4 example with bootstrap 4 (adminLTE template), spring-security, image gallery and upload
Grails4Animals is a grails 4 example with bootstrap 4 (adminLTE template), spring-security, image gallery (fancybox) and upload. It provides an user administration, an image processing and a german localisation.
see wiki
Install grails and clone the repo.
git clone https://github.com/gklinkmann/grails4-animals.wiki.git
You have to configure the webserver url and the image path in the application.yml config file. Esp. http://localhost/~gklinkmann/grails4-animals
.
apache:
serverURL: 'http://localhost/~username/${info.app.name}'
de:
koo:
animals:
images:
path: '/Users/username/public_html/${info.app.name}/images/animals'
url: '${apache.serverURL}/images/animals'
see Grails Doku
- run the app in development environment.
grails run-app
- generate a war file
grails war
- generate a runnable war file
grails package
java -Dgrails.env=dev -jar build/libs/grails4-animals-0.2.war
open http://localhost:8080/animals
in browser
bootstraped user accounts:
- user: admin pw: admin
- user: user pw: user