Basic setup for AngularJS with RequireJS, Jasmine, Grunt, Bower
JavaScript PHP CSS Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
scripts
test
.bowerrc
.gitignore
.travis.yml
GruntFile.js
Procfile
README.md
favicon.ico
package.json
robots.txt

README.md

AngularJS-Boilerplate Build Status

Basic setup for AngularJS with RequireJS, Jasmine, Grunt, and Bower.

Simply clone the project, and you are ready to go.

#Project structure

  • app
    • css
    • img
    • js
      • controllers
      • directives
      • filters
      • providers
      • services
      • main.js (entry point for requireJS)
      • routes.js (routes configuration)
    • lib (3rd parties libraries) (Note that libraries can be managed using Bower)
    • partials (views)
  • node_modules
  • scripts
    • config
  • test
    • e2e
    • fixtures
    • unit (unit tests)

#Prerequesites

You will need to have NodeJS installed on your machine. For more information, check out the official website http://nodejs.org/

#Installation

npm install -g grunt-cli

npm install -g bower

npm install

#Running Unit tests

grunt karma:unit

#Launch site

node scripts/web-server.js

Open your browser, and go to http://localhost:5000/