Skip to content

Instantly share code, notes, and snippets.

@idac73
Last active October 27, 2016 16:38
Show Gist options
  • Save idac73/d3241846ca5b51a966e9 to your computer and use it in GitHub Desktop.
Save idac73/d3241846ca5b51a966e9 to your computer and use it in GitHub Desktop.
C9.io / commands cheatsheet

C9 Environment Variables

process.env.PORT process.env.IP

MongoDB manual config / start

mkdir data echo 'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "$@"' > mongod chmod a+x mongod mongod --smallfiles --nojournal

Webserver k'd?

Kill if needed: kill -9 $(lsof -i:8080 -t)

Run Grunt Server

grunt serve grunt serve --port $PORT --nolivereload

Start a Meteor / Ionic project

meteor add driftyco:ionic meteor --port $IP:$PORT

Install MongoDB

Install NPM

Install Yeoman

Install Yeoman Angular Fullstack

npm install -g generator-angular-fullstack

Create angular project:

yo angular-fullstack restaurant // --jade

Fire up yeoman angular project:

mongod --smallfiles --nojournal grunt serve

Kill web preview process if needed:

kill -9 $(lsof -i:8080 -t)

Create Route(Page):

yo angular-fullstack:route menus

Create Page API:

yo angular-fullstack:endpoint menu

Build and run project for production

grunt build grunt serve:dist

GIT prep everything to save to repository

git add . git commit . -m "Some hackery"

GIT save to repository

git push https://github.com//.git master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment