View example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-pane> | |
<ion-header-bar class="header-footer-bg"> | |
<div class="center"> | |
<h3>Feedhenry</h3> | |
<h4>Quickstart - Ionic</h4> | |
</div> | |
</ion-header-bar> | |
<ion-content has-header="true" ng-controller="MainCtrl"> | |
<div class="row"> |
View controllers.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.list = function () { | |
$scope.listMessage = "Calling Cloud Endpoint"; | |
$scope.listTextClassName = "ion-loading-c"; | |
fhcloud('/hello/list') | |
.then(function (response) { | |
if (response.msg != null && typeof (response.msg) !== 'undefined') { | |
$scope.listMessage = response.msg.msg.list; | |
$scope.listTextClassName = "ion-checkmark-round"; | |
} else { |
View hello.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var cors = require('cors'); | |
var $fh = require('fh-mbaas-api'); | |
function helloRoute() { | |
var hello = new express.Router(); | |
hello.use(cors()); | |
hello.use(bodyParser()); |
View hello.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var cors = require('cors'); | |
var $fh = require('fh-mbaas-api'); | |
function helloRoute() { | |
var hello = new express.Router(); | |
hello.use(cors()); | |
hello.use(bodyParser()); |
View hello.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $fh = require('fh-mbaas-api'); | |
var readOptions = { | |
"act": "list", | |
"type": "myFirstEntity", | |
"eq": { | |
"name": world | |
} | |
}; |
View hello.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $fh = require('fh-mbaas-api'); | |
var timestamp = new Date().getTime(); | |
var options = { | |
"act": "create", | |
"type": "myFirstEntity", | |
"fields": { | |
"name": world, | |
"timestamp": timestamp |
View hello.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $fh = require('fh-mbaas-api'); | |
$fh.service({ | |
"guid": "jfi5oop5vbxmvfcfkef4qyyz", | |
"path": "/hello", | |
"method": "GET", | |
"params": { | |
"hello": world | |
}, | |
"timeout": 25000 |
View hello.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var cors = require('cors'); | |
var $fh = require('fh-mbaas-api'); | |
function helloRoute() { | |
var hello = new express.Router(); | |
hello.use(cors()); | |
hello.use(bodyParser()); |
View hello.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var cors = require('cors'); | |
var $fh = require('fh-mbaas-api'); | |
function helloRoute() { | |
var hello = new express.Router(); | |
hello.use(cors()); | |
hello.use(bodyParser()); |
View hello.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timestamp = new Date().getTime() | |
var options = { | |
"act": "create", | |
"type": "myFirstEntity", | |
"fields": { | |
"name": world, | |
"timestamp": timestamp | |
} | |
}; |
NewerOlder