Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

NilsLattek/angular-grunt-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular template for new apps using grunt

Folder structure is based on http://cliffmeyers.com/blog/2013/4/21/code-organization-angularjs-javascript.

##Setup:

$ npm install .
$ npm install -g grunt-cli
$ npm install -g karma

Start a watch task and a live reload server at localhost:8000:

$ grunt
$ open http://localhost:8000/build/index.html

Run unittests from the console using phantomjs (additionaly you could start the watch task and open the test/testrunner.html in the browser):

$ grunt test

Or use karma executable for continuous running:

$ karma start

Production build (Make sure you know the convetions for ngmin:

$ grunt build

##Proxy support: There are two ways for talking to a backend server. You could use CORS or use grunt-connect-proxy which is preconfigured in the Gruntfile. Just look for the connect -> proxies section. By default every request to /api gets proxied to localhost:3000/api. Deactivate the proxy by removing configureProxies from the default task.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published