Skip to content

Instantly share code, notes, and snippets.

@tomysmile
Last active October 10, 2015 02:34
Show Gist options
  • Save tomysmile/c2b69a5f0f2d5eabd4e5 to your computer and use it in GitHub Desktop.
Save tomysmile/c2b69a5f0f2d5eabd4e5 to your computer and use it in GitHub Desktop.
Web: Getting Started

Getting-Started

Below are summary of getting started from several famous web/mobile framework

$ npm install -g cordova ionic
$ ionic start myApp tabs

$ cd myApp
$ ionic platform add ios
$ ionic build ios
$ ionic emulate ios
$ npm install -g strongloop

$ slc loopback
[?] Enter a directory name where to create the project: hello-world
[?] What's the name of your application? hello-world

$ cd hello-world
$ slc loopback:model

...

$ node .
Browse your REST API at http://0.0.0.0:3000/explorer
Web server listening at: http://0.0.0.0:3000/
$ npm install -g cordova

$ cordova create MyApp
$ cd MyApp
$ cordova platform add browser
$ cordova run browser
$ npm -g install sails

$ sails new testProject

$ cd testProject
$ sails lift
$ vagrant init hashicorp/precise32
$ vagrant up --provider virtualbox

to halt:
$ vagrant halt

to destroy:
$ vagrant destroy -f

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