Giter Site home page Giter Site logo

parse-community / docs Goto Github PK

View Code? Open in Web Editor NEW
314.0 314.0 519.0 11.67 MB

Parse Platform docs

Home Page: https://docs.parseplatform.org

License: Other

Ruby 0.03% JavaScript 8.38% HTML 5.75% SCSS 85.85%
documentation hacktoberfest jekyll parse-platform

docs's People

Contributors

acinader avatar andrewimm avatar bnham avatar craiggrummitt avatar davimacedo avatar dblythy avatar dependabot[bot] avatar dplewis avatar drew-gross avatar ericnakagawa avatar fcrosfly avatar flovilmart avatar gfosco avatar grantland avatar hallucinogen avatar hramos avatar html5cat avatar jaysonng avatar jkarraker avatar montymxb avatar moumouls avatar mtrezza avatar natanrolnik avatar nlutsenko avatar pavanka avatar rafaecheve avatar rogerhu avatar stanleyw avatar thewheat avatar tomwfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

User-scoped requests in the REST API

The REST API guide can be improved with a note on how to scope a request to a specific user.

Passing a session token in a X-Parse-Session-Token header will tell the backend to process the request in the scope of a specific user session.

A section or call out that explicitly documents the use of this header can go a long way towards helping developers understand how to use the REST API in their apps.

Update Express automatic generation command

Running parse generate express, as documented in /en/common/hosting.mdown, results in the following error under version 2.2.1 of the parse-cli:

$ parse generate express
unexpected arguments:[express]

Generates a sample express app in the current project directory.

Usage: 
  parse generate [flags]

Flags:
  -h, --help=false: help for generate
  -t, --type="express-ejs": Type of templates to use for generation.

The docs should be updated to reflect the new parse-cli syntax:

parse generate -t="express-ejs"

Add a note to Cloud Code Guide on compatibility with Node.js and npm

Cloud Code is V8 JavaScript, and Node.js is V8 JavaScript. Cloud Code is not Node.js. With the prevalent use of Node.js as a server side solution, it is understandable how a developer might confuse Cloud Code for a Node.js environment.

This distinction should be clearly called out in the Cloud Code section of the Documentation. I would suggest using one of the callouts already used in the right side of the docs throughout the documentation.

Furthermore, given that Cloud Code is not Node.js, one cannot simply import a npm and expect it to work without any modification. This has been brought up several times in Parse's developer forums.

A section documenting the necessary steps to adapt a npm module should be added to the Cloud Code guide, perhaps under the Modules section.

In general, you can follow this advice to adapt a npm for Cloud Code:

  1. Install the module locally using npm, which will create a node_modules directory.
  2. Copy the module's directory to your cloud/ directory.
  3. Inspect the module's source for any require() method calls. If you find any, make sure these are turned into absolute paths (e.g. require('cloud/your_module_dependency.js');). You might need to download additional modules if the required file is not yet present in your cloud/ directory.
  4. Import the module into your main.js file using require('cloud/your_module.js');

Expand JSON payload in the REST API curl examples

The previous version of the Docs presented the curl commands in a readable format that seems to have been lost in the transition to open source.

Currently, our examples look like this:

curl -X GET \
  -H "X-Parse-Application-Id: ${APPLICATION_ID}" \
  -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
  -G \
  --data-urlencode 'where={"playerName":{"$nin":["Jonathan Walsh","Dario Wunsch","Shawn Simon"]}}' \
  https://api.parse.com/1/classes/GameScore

They would be better laid out like this:

curl -X GET \
  -H "X-Parse-Application-Id: ${APPLICATION_ID}" \
  -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
  -G \
  --data-urlencode 'where={
  "playerName": {
    "$nin": [
      "Jonathan Walsh",
      "Dario Wunsch",
      "Shawn Simon"
    ]
  }
}' \
  https://api.parse.com/1/classes/GameScore

Swift sample code missing for various sections

Some of the files in the iOS guide are missing Swift examples (search for "no swift example"):

Docs/en/ios/handling-errors.mdown
Docs/en/ios/in-app-purchases.mdown
Docs/en/ios/local-datastore.mdown
Docs/en/ios/push-notifications.mdown
Docs/en/ios/queries.mdown
Docs/en/ios/user-interface.mdown

Document all keys

We need one place to properly document each of the keys:

  • Client Key
  • JavaScript Key
  • .NET Key
  • REST Key
  • Master Key
  • Webhook Key

Add C# Examples to Performance Guide

The query examples are missing from the performance guidance for Parse.com and Unity:

GitHub: Docs / en / common / performance.mdown
Page: https://parse.com/docs/unity/guide#performance

"Not Equal To
For example, let's say you're tracking high scores for a game in a GameScore class. Now say you want to retrieve the scores for all players except a certain one. You could create this query:

This query can't take advantage of indexes. The database has to look at all the objects in the GameScore class to satisfy the constraint and retrieve the results. As the number of entries in the class grows, the query takes longer to run."

1

Regards,

Yuri

Parse.jar not found in the Parse-1.10.3.zip

I downloaded the Android SDK as mentioned in the documentation. When I unzip it, the parse.jar file is not found. It was present for earlier versions I used. However when I tried for 1.10.3 the parse.jar file was missing.

Update Express Project Generation Instructions

https://www.parse.com/docs/js/guide#hosting-creating-a-web-app

After you get Parse Hosting set up, you can generate a starter web app by typing the following inside your parse project folder.

$ parse generate express
λ →  parse version   
2.0.12
λ →  parse generate express
unexpected arguments:[express]

Generates a sample app in the current project directory

Usage: 
  parse generate [flags]
Flags:
  -t, --type="express-ejs": Type of templates to use for generation.

Global Flags:
  -h, --help=false: help for generate

订阅channels时程序会死掉

在按照文中给的方法( PushService.subscribe(this, "Giants", YourActivity.class);
)来订阅channels时,程序会报如下错误:PushService.subscribe, PushService.unsubscribe, and PushService.setDefaultPushCallback methods cannot be used in conjunction with ParsePushBroadcastReceiver. See ParsePush.subscribe and ParsePush.unsubscribe.查看API可以看出subscribe是废弃方法,可以使用:ParsePush.subscribeInBackground("Giants");来解决这个问题,困扰了我很久,今天终于找到原因了,希望能更正文档,谢谢!

editing/creating custom fields - swift

I would like to edit a custom field in my parse app using parse iOS sdk, however, the suggested way does not seem to work.

var user = PFUser()
// other fields can be set just like with PFObject
user["phone"] = "415-392-0202" //ERROR: cannot assign a value of type string to a value of type any object?

Expand Cloud Module Guide with instructions on importing newer versions

Parse's built-in Cloud Modules were provided as a one stop solution to importing select third party JavaScript SDKs into a Cloud Code environment.

Most of these modules are essentially snapshots of a particular provider's JavaScript SDK. Since these modules are not versioned, they have not been updated to avoid breaking existing Cloud Code applications. In the three years since these modules were launched, there have been several updates to most, if not all, of the JavaScript SDKs on which these modules were based originally. The moment module, for example, is based on a prerelease version.

Given that the original modules were adapted from existing JavaScript SDKs, it is quite straightforward to adapt the most recent version of one of these SDKs to work in Cloud Code as a third party Cloud Module. Most of these modules provide useful abstractions that warrant a full guide to importing these modules into Cloud Code successfully.

We should expand the Cloud Modules section of our guide to include instructions on importing the most up to date version of each of these third party Cloud Modules:

  • Mailgun
  • Mandrill
  • Moment
  • SendGrid
  • Stripe
  • Twilio
  • Underscore

Link to API headers were applicable

The SDK's API Reference list all the methods available to the user, which may or may not be covered in the guide itself. We should link to the reference as needed. Some sections come to mind:

  1. Queries section. We get a lot of questions that could be answered by performing a cursory search over https://parse.com/docs/ios/api/Classes/PFQuery.html to learn about all the methods that can be used with a query.

Cloud Code Modules API Reference Missing

The links to the API reference for Cloud code modules don't work anymore (On the JavaScript documentation). Ex "Stripe", "Apps Links".
Then i didn't found any reference of the cloud modules in the API reference page of the javascript SDK.

Facebook login crash

When I try to login user via Facebook, after confirmation I get

2015-06-04 00:02:56.853 XYZ[13805:4903239] 13805: CFNetwork internal error (0xc01a:/SourceCache/CFNetwork/CFNetwork-711.3.18/Foundation/NSURLRequest.mm:798)
2015-06-04 00:02:56.857 XYZ[13805:4903338] 13805: CFNetwork internal error (0xc01a:/SourceCache/CFNetwork/CFNetwork-711.3.18/HTTP/HTTPRequestParserClient.h:28)

and app crashes.

It passes The user authenticates via Facebook, and your app receives a callback using handleOpenURL.

And crash somewhere at Our SDK receives the user's Facebook access data and saves it to a PFUser. If no PFUser exists with the same Facebook ID, then a new PFUser is created.

Expand Cloud Module Guide with instructions on importing newer versions

Parse's built-in Cloud Modules were provided as a one stop solution to importing select third party JavaScript SDKs into a Cloud Code environment.

Most of these modules are essentially snapshots of a particular provider's JavaScript SDK. Since these modules are not versioned, they have not been updated to avoid breaking existing Cloud Code applications. In the three years since these modules were launched, there have been several updates to most, if not all, of the JavaScript SDKs on which these modules were based originally. The moment module, for example, is based on a prerelease version.

Given that the original modules were adapted from existing JavaScript SDKs, it is quite straightforward to adapt the most recent version of one of these SDKs to work in Cloud Code as a third party Cloud Module. Most of these modules provide useful abstractions that warrant a full guide to importing these modules into Cloud Code successfully.

We should expand the Cloud Modules section of our guide to include instructions on importing the most up to date version of each of these third party Cloud Modules:

  • Mailgun
  • Mandrill
  • Moment
  • SendGrid
  • Stripe
  • Twilio
  • Underscore

Swift quickstart guides have outdaded parse APIs

The quickstarts for both Analytics and Push don't work, they reference old Parse API that doesnt include blocks, eg PFAnalytics.trackAppOpenedWithRemoteNotificationPayload(userInfo)

and PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)

and PFAnalytics.trackEvent("read", dimensions: dimensions)

These all apparently require the usage of blocks now. I just downloaded and got started and had to debug all the quick starts.

Typo in iOS Guide Push Notifications section

"pushType: This field is reserved for directing Parse to the push delivery network to be used. If the devic is registered to receive pushes via GCM, this field will be marked "gcm". If this device is not using GCM, and is using Parse's push notification service, it will be blank (readonly)."

device*

Incorrect code for PFFile to NSImage conversion in OS X guide

The OS X developers guide shows the following code (in section Files > Images)

PFFile *userImageFile = anotherPhoto[@"imageFile"];
[userImageFile getDataInBackgroundWithBlock:^(NSData *imageData, NSError *error) {
    if (!error) {
        UIImage *image = [UIImage imageWithData:imageData];
    }
}];

for creating an image from PFFile data. This is clearly a copy from the iOS guide as it is using UIImage instead of NSImage and therefore wrong.

The code for creating an NSImage is not so trivial, as there is no simple PNGRepresentation method on NSImage and you need to take retina scaling into account when creating an image from NSData.

Restore Promises Guide

The previous version of the docs had a "Promises" section with information on how to write serial + parallel promises. This seems to have been omitted from the new Docs.

Missing bracket in example

Now I have implementing Parse to my app.
I found missing bracket in source example.
please check this full request.(I'm not good at Git. So I wonder this issuing is good or not.)
#153

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.