|
Derek@GETY ~/Desktop/workspace |
|
$ sails new sails-auth-example |
|
info: Created a new Sails app `sails-auth-example`! |
|
Derek@GETY ~/Desktop/workspace |
|
$ cd sails-auth-example/ |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ npm install --save |
|
npm http GET https://registry.npmjs.org/sails-disk |
|
npm http GET https://registry.npmjs.org/include-all |
|
npm http GET https://registry.npmjs.org/ejs |
|
..... |
|
$ npm install sails-generate-auth |
|
npm http GET https://registry.npmjs.org/sails-generate-auth |
|
npm http 304 https://registry.npmjs.org/sails-generate-auth |
|
..... |
|
sails-generate-auth@0.1.4 node_modules\sails-generate-auth |
|
├── merge-defaults@0.1.0 |
|
└── lodash@2.4.1 |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ npm install sails-generate-auth --save |
|
npm http GET https://registry.npmjs.org/sails-generate-auth |
|
npm http 304 https://registry.npmjs.org/sails-generate-auth |
|
..... |
|
sails-generate-auth@0.1.4 node_modules\sails-generate-auth |
|
├── merge-defaults@0.1.0 |
|
└── lodash@2.4.1 |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ sails generate auth |
|
Running generator (sails-generate-auth) @ `c:\Users\Derek\Desktop\workspace\sail |
|
s-auth-example`... |
|
error: Something else already exists at ::c:\Users\Derek\Desktop\workspace\sails |
|
-auth-example\config\locales\en.json |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ rm c:\Users\Derek\Desktop\workspace\sails-auth-example\config\locales\en.json |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ sails generate auth |
|
Running generator (sails-generate-auth) @ `c:\Users\Derek\Desktop\workspace\sail |
|
s-auth-example`... |
|
error: Something else already exists at ::c:\Users\Derek\Desktop\workspace\sails |
|
-auth-example\api\services\protocols |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ rm c:\Users\Derek\Desktop\workspace\sails-auth-example\api\services\protocols |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ sails generate auth |
|
Running generator (sails-generate-auth) @ `c:\Users\Derek\Desktop\workspace\sail |
|
s-auth-example`... |
|
info: Created a new auth! |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ npm install bcrypt --save; npm install passport --save; npm install validator |
|
--save; npm install passport-facebook --save; npm install passport-local --save |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ sails generate model user |
|
info: Created a new model ("User") at api/models/User.js! |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ rm ./views/homepage.ejs |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ mkdir ./views/auth; |
|
Derek@GETY ~/Desktop/workspace/sails-auth-example |
|
$ touch ./views/auth/login.ejs; touch ./views/auth/register.ejs; touch ./views/auth/index.ejs; touch ./assets/styles/main.css |
sudo chmod 777 sails-auth-example -R