Running on crystal.js.
Install MongoDB.
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/
sudo mongod
git clone git@github.com:pedramphp/me-app.git
cd me-app
sudo npm install
npm test
npm start
heroku login
// enter your heorku user and password.
travis login --pro
// enter your github user name and passowrd
//run this in the root folder of your project, it will generate the apikey for deployment.
travis encrypt $(heroku auth:token) --add deploy.api_key
Make sure to use https://github.com/stoyan/cssshrink for shrinking css
Run the following command to see the error logs.
// you need to download unserscore-cli once.
sudo npm install underscore-cli -g
cat exceptions.log | underscore print --color
http://me-app-qa.herokuapp.com/
https://travis-ci.org/pedramphp/me-app
Integrating Passport.js with Crystal.js
//removing all data from a collection
db.users.remove({})
// show all users.
db.users.find().pretty();
http://localhost:5000/comps
Phone: http://localhost:5000?_device=phone
Tablet: http://localhost:5000?_device=tablet
Desktop: http://localhost:5000?_device=desktop
to update dependencies
npm update --save
TESTING:
npm test
Run application
npm start
git remote add upstream https://github.com/pedramphp/me-app(Remote > Manage Remotes > Add )
git fetch upstream
//Syncing your fork
//When you already have a fork, and you are going to work on a new feature,
git fetch upstream
git checkout master (if you do not have this branch in your local, follow "Pull a new branch..." steps)
git merge upstream/master
remove locally
git branch -D <branchName>
remove from the origin
git push origin --delete <branchName>
npm install npmrc -g
npmrc -c cubejs // create a new npmrc
npm config set registry http://registry.npmjs.dev.ebay.com //set the registry for cubejs.
npm config get registry // returns http://registry.npmjs.dev.ebay.com/
npmrc default // switching to default npmrc
npm config get registry // returns https://registry.npmjs.org/
npm install browser-refresh -g
browser-refresh server.js
npm install optimizer --save
npm install serve-static --save
npm install change-case --save
npm install npm --global
npm install marko --save
npm install express --save
npm install browser-refresh-taglib --save
npm install browser-refresh -g
npm install optimizer --save
npm install serve-static --save
npm install marko-widgets
npm install marko -g
markoc . --clean
browser-refresh server.js
npm link //add a folder to a link