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!
- Create a branch
- Write a test for the bug or feature
- Run
grunt test
and watch it fail - Write code
- See test pass
- Push up branch and pull request
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
- Checkout the repo
```git clone``` {{use the git clone link at the right}}
- Enter project directory, see that RVM does not error
```cd angular_proxy_template```
- Install node packages locally
```npm install```
- Install your bower packages and copy them into /public
```grunt install```
- 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!