/angular-template

angular template

Primary LanguageJavaScript

Angular Template

Get a project started right!

This particular template has a server file designed to be used with a proxy. But you could just delete the server.js file and do your own thing if you want.

The main help here is a good angular structure with a really sweet Gruntfile!

Contribute

  1. Create a branch
  2. Write a test for the bug or feature
  3. Run grunt test and watch it fail
  4. Write code
  5. See test pass
  6. Push up branch and pull request

Environment setup

Environment setup

You will need...

  • Node Package Manager (can be installed through brew)

    brew install npm

  • grunt for compiling haml, less

    npm install -g grunt-cli

  • bower for fetching static javascript/css assets (like bootstrap)

    npm install -g bower

  • karma and phantomjs for running angular tests

    npm install -g karma phantomjs

Running the server locally

  1. Checkout the repo
```git clone``` {{use the git clone link at the right}}
  1. Enter project directory, see that RVM does not error
```cd angular_proxy_template```
  1. Install node packages locally
```npm install```
  1. Install your bower packages and copy them into /public
```grunt install```
  1. Run your static server w/ proxy!
```npm start```

- If you get `[Proxy] Error!!!` you are not running the API server, but everything else is working correctly. Or just don't do the proxy thing and write your own server file from scratch!