nikodc / grails-angular

Grails and AngularJS Demo, forked from: https://bitbucket.org/sarbogast/grails-angular.git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grails and AngularJS Demo

Welcome! This project is a demo of a Single Page Application created using:

  • AngularJS for a pure HTML/JS front-end application (frontend folder), using Angular's $resource to communicate with the server. This project can be built and run using Yeoman (Yo, Grunt and Bower).
  • Grails for the backend (backend folder), using Grails 2.3.1 excellent capabilities for serving a REST API. The application is meant to be used in standalone mode (with Jetty embedded)

This is the companion code of my talk "Developing SPI applications using Grails and AngularJS".

How to get started

  1. Install Yeoman (note: you don't need Grails. It will be downloaded automatically) and Compass:

     npm install -g yo
     sudo gem install compass
    
  2. Make sure you have yo, grunt and bower command line tools:

     yo --version
     grunt --version
     bower --version
    
  3. Start the backend:

     cd backend
     ./grailsw compile && ./grailsw build-standalone
     java -jar target/standalone-0.1.jar
    
  4. Install frontend dependencies (you need to do this only once):

     cd ../frontend
     npm install
     bower update
    
  5. Start the frontend:

     grunt server
    

Roadmap

About

Grails and AngularJS Demo, forked from: https://bitbucket.org/sarbogast/grails-angular.git


Languages

Language:CSS 26.9%Language:JavaScript 26.8%Language:Shell 26.5%Language:Groovy 19.8%