codepath/parse-server-example

Name: parse-server-example

Owner: CodePath

Description: Example server using Express and the parse-server module.

Forked from: parse-community/parse-server-example

Created: 2016-02-10 08:44:16.0

Updated: 2018-05-06 18:43:15.0

Pushed: 2018-05-06 18:43:14.0

Homepage: null

Size: 42

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

parse-server-example

Example project using the parse-server module on Express.

Read the full server guide here: https://parse.com/docs/server/guide

For Local Development
Getting Started With Heroku + Mongolab Development
With the Heroku Button

Deploy

Without It
Getting Started With AWS Elastic Beanstalk
With the Deploy to AWS Button

Without It
Getting Started With Microsoft Azure App Service
With the Deploy to Azure Button

Deploy to Azure

Without It

A detailed tutorial is available here: Azure welcomes Parse developers

Getting Started With Scalingo
With the Scalingo button

Deploy to Scalingo

Without it
Using it

You can use the REST API, the JavaScript SDK, and any of our open-source SDKs:

Example request to a server running locally:

 -X POST \
 "X-Parse-Application-Id: myAppId" \
 "Content-Type: application/json" \
 '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \
tp://localhost:1337/parse/classes/GameScore

 -X POST \
 "X-Parse-Application-Id: myAppId" \
 "Content-Type: application/json" \
 '{}' \
tp://localhost:1337/parse/functions/hello

Example using it via JavaScript:

e.initialize('myAppId','unused');
e.serverURL = 'https://whatever.herokuapp.com';
obj = new Parse.Object('GameScore');
set('score',1337);
save().then(function(obj) {
nsole.log(obj.toJSON());
r query = new Parse.Query('GameScore');
ery.get(obj.id).then(function(objAgain) {
console.log(objAgain.toJSON());
 function(err) {console.log(err); });
unction(err) { console.log(err); });

You can change the server URL in all of the open-source SDKs, but we're releasing new builds which provide initialization time configuration of this property.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.