parse-spec

0.3.0 • Public • Published

parse-spec npm version

Testing framework for Parse.com API migration

How to install

$ npm install -g parse-spec

How to use

$ parse-spec -c /path/to/api.json -b /path/to/build_dir trace
$ parse-spec -c /path/to/api.json -b /path/to/build_dir verify

Configuration

Write below information into config/api.json

{
  "app_name": <Your Application Name>,
  "endpoint": <Endpoint to be tested>,
  "parse_endpoint": "https://api.parse.com/1/",
  "app_id": <Your Application ID>,
  "restapi_key": <Your Application REST API Key>,
  "master_key": <Your Application Master Key>,
  "classes": [
    // Classe records stored in your Parse.com application
  ]
}

Build

$ npm run build

Usage for dev

First trace Parse.com API and migrated API.

$ npm run trace

Next verify API by comparing trace files.

$ npm run verify

LICENSE

MIT License

Dependents (0)

Package Sidebar

Install

npm i parse-spec

Weekly Downloads

2

Version

0.3.0

License

MIT

Last publish

Collaborators

  • lewuathe