This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd | |
RBENV = "~/.rbenv" | |
echo 'No RBENV. Installing.....' | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
if [ $ZSH_VERSION ] | |
then | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(rbenv init -)"' >> ~/.zshrc |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In Sails app install test dependencies: | |
// $ npm install mocha supertest sails-memory --save-dev | |
// Create some tests in `test` folder in the app. | |
// Run `mocha` | |
var request = require('supertest'), | |
assert = require('assert'), | |
sails = require('sails'), | |
io = require('sails/node_modules/socket.io/node_modules/socket.io-client'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In Sails app install test dependencies: | |
// $ npm install mocha supertest sails-memory --save-dev | |
// Create some tests in `test` folder in the app. | |
// Run `mocha` | |
var request = require('supertest'), | |
assert = require('assert'), | |
sails = require('sails'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// api/controllers/AuthController.js | |
var passport = require('passport'); | |
var AuthController = { | |
login: function (req,res) | |
{ | |
res.view(); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// api/controllers/AuthController.js | |
var passport = require('passport'); | |
var AuthController = { | |
login: function (req,res) | |
{ | |
res.view(); | |
}, |
NewerOlder