Giter Club home page Giter Club logo

parse-server-example-1's Introduction

Hosting the Parse Server on Appcelerator's Cloud

Blog Post Here: http://www.appcelerator.com/blog/2016/02/your-very-own-mbaas-how-to-move-from-parse-to-appcelerator-arrow/

Hosting the Parse Server on Arrow Cloud is easy. Use this sample app to get started.

Steps to Deploy

  1. Migrate your data to a MongoDB database. Parse makes this easy and painless, see here: https://parse.com/docs/server/guide#migrating

  2. Clone or download this repo.

  3. Install dependencies npm install

  4. Open app.js and change the properties of ParseServer object (Mongo URL, appId, etc)

  5. Run it locally via appc run and test it out (see below sample cURL requests for testing)

  6. When you're all ready, publish it via appc cloud publish. Upon publish you'll get a URL to your app. The only thing left you have to do is change your clients to point to this new URL instead of the old Parse API (Note: you should get a CNAME for your API server).

For more information on using Arrow Cloud like setting up a CNAME, horizontally scaling, etc: http://docs.appcelerator.com/platform/latest/#!/guide/Arrow_Cloud

For more information on migrating from Parse, using the Parse server, etc:

https://parse.com/docs/server/guide#migrating

https://github.com/ParsePlatform/parse-server

For information on using push notifications and analytics:

http://docs.appcelerator.com/platform/latest/#!/guide/Appcelerator_Analytics

http://docs.appcelerator.com/arrowdb/latest/#!/guide/guides

cURL Examples

# Create a new record
curl -X POST \
  -H "X-Parse-Application-Id: <AppIdHere>" \
  -H "Content-Type: application/json" \
  -d '{"score":234,"playerName":"John Doe","cheatMode":true}' \
  <YourUrlHere>/parse/classes/GameScore

# Get all records
curl -X GET \
  -H "X-Parse-Application-Id: <AppIdHere>" \
  -H "X-Parse-Master-Key: <MasterKeyHere>" \
  <YourUrlHere>/parse/classes/GameScore

parse-server-example-1's People

Contributors

rblalock avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.