This example demonstrates the basic use of $resources which is more aligned with fully baked REST APIs in the backend and avoid making raw $http calls from services. This also helps your keep your code in Models and presents an ActiveRecord approach as Rubyist are more used to
-
Delete node-modules directory
-
Install nodejs first. Then mongod and bower
-
Inside this directory, run
bower install
npm install
-
Run the mongod server
mongod
-
Go inside server folder and run the express server (which is like mini Phusion)
node server.js