Skip to content

Instantly share code, notes, and snippets.

@brunohaveroth
Last active September 27, 2016 14:34
Show Gist options
  • Save brunohaveroth/fea6904cbd55424f8cff to your computer and use it in GitHub Desktop.
Save brunohaveroth/fea6904cbd55424f8cff to your computer and use it in GitHub Desktop.
STEPS:
1 CREATE PROJECT:
1.1 -> ember new project-name
2 PODS:
2.1 -> In config/environment add this line podModulePrefix: 'project-name/pods',
2.2 -> ember generate route application --pod
2.3 -> read more in http://ember-cli.com/user-guide/
3 STYLUS:
3.1 -> ember install ember-cli-stylus
3.2 -> change app.css to app.styl
3.3 -> read more in http://ember-cli.com/user-guide/
4 CONNECTION WITH THE API:
4.1 -> ember generate adapter application
4.2 -> ADAPTER PARAMS:
4.2.1 -> host: add api host, ex: http://localhost:1337
4.2.2 -> namespace: 'api/v1'
4.2.3 -> read more in https://guides.emberjs.com/v2.3.0/models/customizing-adapters/
4.3 -> IF IS SAILS API USE EMBER DATA SAILS:
4.3.1 -> https://github.com/huafu/ember-data-sails
4.4 -> IF USE FIREBASE
4.4.1 -> USER EMBERFIRE, https://github.com/firebase/emberfire
5 LOGIN:
5.1 -> install ember simple auth, https://github.com/simplabs/ember-cli-simple-auth
5.2 -> INSTALL AUTHENTICATOR:
5.2.1 -> AUTH TOKEN, https://www.npmjs.com/package/ember-cli-simple-auth-token
5.2.2 -> AUTH FIREBASE, https://www.npmjs.com/package/ember-cli-simple-auth-firebase
6 CORDOVA PROJECT:
6.1 -> ember install ember-cli-cordova
6.2 -> ember generate cordova-init com.poeticsystems.hello
6.3 -> read more, https://github.com/poetic/ember-cli-cordova/blob/master/docs/getting-started.md
7 FRAMEWORK7:
7.1 -> Install framework, bower install --save framework7
7.2 -> import the framework7 in file ember-cli-build.js:
var appType = 'ios'; //material or ios
/*--- import framework7 ---*/
app.import('bower_components/Framework7/dist/css/framework7.'+ appType +'.min.css');
app.import('bower_components/Framework7/dist/css/framework7.'+ appType +'.colors.min.css');
app.import('bower_components/Framework7/dist/js/framework7.min.js');
/*--- import framework7 ---*/
7.3 -> read more, http://www.idangero.us/framework7/get-started/#.VryP35MrLIE
7.4 -> or use addons of ember: https://github.com/ember-mobile/ember-cli-framework7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment