Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The JavaScript SDK for the Parse Platform

License

NotificationsYou must be signed in to change notification settings

sadakchap/Parse-SDK-JS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parse Platform

Parse SDK for JavaScript

A library that gives you access to the powerful Parse Server backend from your JavaScript app.

Follow on TwitterJoin the conversationLicenseBuild statusBackers on Open CollectiveSponsors on Open Collective

Test coveragenpm versionCDNJS versionGreenkeeper badge


For more information on Parse and its features, seethe website,the JavaScript guide,the Cloud Code guide orAPI Reference.

Getting Started

The easiest way to integrate the Parse SDK into your JavaScript project is through thenpm module.However, if you want to use a pre-compiled file, you can fetch it fromunpkg. The development version is available athttps://unpkg.com/parse/dist/parse.js, and the minified production version is athttps://unpkg.com/parse/dist/parse.min.js.

Using Parse on Different Platforms

The JavaScript ecosystem is wide and incorporates a large number of platforms and execution environments. To handle this, the Parse npm module contains special versions of the SDK tailored to use in Node.js andReact Native environments. Not all features make sense in all environments, so using the appropriate package will ensure that items like local storage, user sessions, and HTTP requests use appropriate dependencies. For server side rendered applications, you may set theSERVER_RENDERING variable to prevent warnings at runtime.

To use the npm modules for a browser based application, include it as you normally would:

constParse=require('parse');// ES6 MinimizedimportParsefrom'parse/dist/parse.min.js';

For web worker or browser applications, indexedDB storage is available:

Parse.CoreManager.setStorageController(Parse.IndexedDB);

For server-side applications or Node.js command line tools, include'parse/node':

// In a node.js environmentconstParse=require('parse/node');

For React Native applications, include'parse/react-native.js':

// In a React Native applicationconstParse=require('parse/react-native.js');// On React Native >= 0.50 and Parse >= 1.11.0, set the AsyncconstAsyncStorage=require('react-native').AsyncStorage;Parse.setAsyncStorage(AsyncStorage);

For WeChat miniprogram, include'parse/weapp':

// In a WeChat miniprogramconstParse=require('parse/weapp');

If you want to use a pre-compiled file, you can fetch it fromunpkg. The development version is available athttps://unpkg.com/parse/dist/parse.weapp.js, and the minified production version is athttps://unpkg.com/parse/dist/parse.weapp.min.js.

For TypeScript applications, install'@types/parse':

$ npm install @types/parse

Types are updated manually after every release. If a definition doesn't exist, please submit a pull request to@types/parse

Upgrading to Parse SDK 2.0.0

With Parse SDK 2.0.0, gone are the backbone style callbacks and Parse.Promises.

We have curated amigration guide that should help you migrate your code.

3rd Party Authentications

Parse Server supports many3rd Party Authenications. It is possible tolinkWith any 3rd Party Authentication by creating acustom authentication module.

Want to ride the bleeding edge?

We recommend using the most recent tagged build published to npm for production. However, you can test not-yet-released versions of the Parse-SDK-JS by referencing specific branches in yourpackage.json. For example, to use the master branch:

npm install parse-community/Parse-SDK-JS.git#master

Experimenting

You can also use your own forks, and work in progress branches by specifying them:

npm install github:myUsername/Parse-SDK-JS#my-awesome-feature

And don't forget, if you plan to deploy it remotely, you should runnpm install with the--save option.

Contributing

We really want Parse to be yours, to see it grow and thrive in the open source community. Please see theContributing to Parse Javascript SDK guide.

License

Copyright (c) 2015-present, Parse, LLC.All rights reserved.This source code is licensed under the BSD-style license found in theLICENSE file in the root directory of this source tree. An additional grantof patent rights can be found in the PATENTS file in the same directory.

As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.

About

The JavaScript SDK for the Parse Platform

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp