api
Project Objectives:
- Learn more about Sails.js
- Learn how to integrate project with CI
- Learn how to authorize users with combination of OAuth/local strategy.
- Learn how to test api using supertest
- Deploy to Heroku / MongoLabs
a sample Sails application
Run tests
npm test
Facebook OAuth
Use the Facebook developers tools to approve any client URLs
Google OAuth
Use the Google developers console to approve any client URLs
Environment Variables
QUICKSTART_DB=mongodb://:@:/databaseName
Issues
- Would like to figure out a way to get mocha --watch to work on tests. Adding --watch flag to mocha.opts does not play nice with sails.
Debugging Mocha tests
node-inspector mocha --debug-brk bootstrap.js controllers/weightLossGoalContoller.spec.js
- in chrome: http://127.0.0.1:8080/debug?port=5858