- install node
- install npm if you have to and npm init
- npm install express --global --save
- global makes the files go to a global dir on your comp instead of in the repo
- save adds it as a dep to your package.json (the functional equivalent of a Gemfile for node.js apps)
- have an express app that will just serve assets
- it serves stuff in the public dir that is where out app will be
- index.html is a convention that lets the server know that if a person hits the root of a url server this html
- add bower (because it will get alot of assets and stuff for us)
- npm install bower --global
- bower install angular in public dir
- bower init
- bower install angular --save
- there is no magic here. all it does is create a download angular and put it in the bower components file
- the --save part of the command persits it to our bower.json which keeps track of all the external assets our app uses
- have an index.html add angular to it
- have an app.js
Written with StackEdit.