Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
kinvey-node-sdk
Advanced tools
Kinvey (pronounced Kin-vey, like convey) makes it ridiculously easy for developers to setup, use and operate a cloud backend for their mobile apps. They don't have to worry about connecting to various cloud services, setting up servers for their backend, or maintaining and scaling them.
This node module makes it very easy to connect your NodeJS app with Kinvey.
To use the SDK, sign up for Kinvey if you have not already done so. Go to the sign up page, and follow the steps provided.
You can install the module using npm:
npm install kinvey-node-sdk --save
Import the library in your code using require
.
var Kinvey = require('kinvey-node-sdk');
Next, use Kinvey.init
to configure your app. Replace <appKey>
and <appSecret>
with your apps app key and secret. You can find these for your app using the Kinvey Console App.
Kinvey.init({
appKey: '<appKey>',
appSecret: '<appSecret>'
});
You can use the following snippet to verify the app credentials were entered correctly. This function will contact the backend and verify that the SDK can communicate with your app.
Kinvey.ping().then(function(response) {
console.log('Kinvey Ping Success. Kinvey Service is alive, version: ' + response.version + ', response: ' + response.kinvey);
}).catch(function(error) {
console.log('Kinvey Ping Failed. Response: ' + error.message);
});
You are now ready to start building your awesome apps! Next we recommend diving into the User guide or Data store guide to learn more about our service, or explore the sample apps to go straight to working projects.
The simplest way to build the sdk is by running npm run build
. More advanced scripts are available.
npm run build
: build the sdknpme run clean
: remove files created by the build processnpm run lint
: lint the src filesYou can run the tests using npm test
.
The workflow for releasing a new version of the sdk is as follows:
gulp bump --type <type>
replacing <type>
with major, minor, patch, or prerelease. See Flags above.npm run build
and commit file changes.Note: The Node Release Job will publish the pacakge on NPM.
Copyright 2016 Kinvey, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
FAQs
Kinvey JavaScript SDK for NodeJS applications.
The npm package kinvey-node-sdk receives a total of 105 weekly downloads. As such, kinvey-node-sdk popularity was classified as not popular.
We found that kinvey-node-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.