##How to use
in main.js :
var require2 = require("cloud/require.js");
require2("cloud/app");
// same as
mutation { | |
NewClass { | |
create(foo: "hello", bar: false, increment: 1) { | |
objectId, foo, bar, increment | |
} | |
} | |
} | |
mutation { | |
create(className: "NewClass", params: {foo: "Bar", bar: true, increment: 10}) { |
[ec2-user@ip-172-31-14-143 ~]$ cat npm-debug.log | |
0 info it worked if it ends with ok | |
1 verbose cli [ '/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/bin/node', | |
1 verbose cli '/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli 'sse4_crc32' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose config Skipping project config: /home/ec2-user/.npmrc. (matches userconfig) | |
5 verbose install initial load of /home/ec2-user/package.json |
8454 info install [email protected] | |
8455 verbose unsafe-perm in lifecycle false | |
8456 info [email protected] Failed to exec install script | |
8457 verbose stack Error: [email protected] install: `node-gyp rebuild` | |
8457 verbose stack Exit status 1 | |
8457 verbose stack at EventEmitter.<anonymous> (/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/lib/node_modules/npm/lib/utils/lifecycle.js:214:16) | |
8457 verbose stack at emitTwo (events.js:87:13) | |
8457 verbose stack at EventEmitter.emit (events.js:172:7) | |
8457 verbose stack at ChildProcess.<anonymous> (/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/lib/node_modules/npm/lib/utils/spawn.js:24:14) | |
8457 verbose stack at emitTwo (events.js:87:13) |
// PushStatus contains information about a push that was sent by an app. Its | |
// BSON format is stored directly in Mongo. Its JSON format is the REST format | |
// exposed to external developers, e.g. "_id" is mapped to "objectId", | |
// "_created_at" is mapped to "createdAt", etc. | |
type PushStatus struct { | |
// ObjectID is a string matching the standard Parse object id format. | |
ObjectID string `bson:"_id" json:"objectId"` | |
// CreatedAt contains the current modification time for this object. | |
CreatedAt TimeString `bson:"_created_at" json:"createdAt"` |
import Parse | |
import Bolts | |
class AuthDelegate:NSObject, PFUserAuthenticationDelegate { | |
func restoreAuthenticationWithAuthData(authData: [String : String]?) -> Bool { | |
return true | |
} | |
} | |
let configuration = ParseClientConfiguration { (configuration) -> Void in |
node_modules | |
.dockerignore | |
Dockerfile | |
npm-debug.log | |
.git | |
.hg | |
.svn |
# Dockerfile extending the google appengine Node image with application files for a | |
# single application. | |
FROM gcr.io/google_appengine/nodejs | |
# Check to see if the the version included in the base runtime satisfies \ | |
# ~0.12.0, if not then do an npm install of the latest available \ | |
# version that satisfies it. \ | |
RUN npm install https://storage.googleapis.com/gae_node_packages/semver.tar.gz && \ | |
(node -e 'var semver = require("semver"); \ | |
if (!semver.satisfies(process.version, "~0.12.0")) \ | |
process.exit(1);' || \ |
runtime: nodejs | |
vm: true | |
api_version: 1 | |
env_variables: | |
PORT: '8080' | |
# The parsre configuration for parse-anywhere | |
PARSE_APPLICATION_ID: PLACEHOLDER_FILL_ME | |
PARSE_JAVASCRIPT_KEY: PLACEHOLDER_FILL_ME | |
PARSE_MASTER_KEY: PLACEHOLDER_FILL_ME | |
# optional |
function isMobile() { | |
var ua = navigator.userAgent.toLowerCase(); | |
var isAndroid = ua.indexOf("android") > -1; | |
var isiPhone = ua.indexOf("iphone") > -1; | |
var isiPod = ua.indexOf("ipod") > -1; | |
return (isAndroid || isiPhone || isiPod); | |
} | |
// In the callback | |
if(isMobile()) { |