Git Product home page Git Product logo

mongo-compatible-parse-schema's Introduction

mongo-compatible-parse-schema

Create a mongoimport-ready parse schema, that's compatible with parse-server. Taking a Parse application id and a master key, it downloads and formats the schema.

Why?

Currently, you can only use the official Parse migration tool to migrate a parse server from Parse.com. The exportable .json files is incompatible with parse-server. moflo's parse-mongodb-export, helps you format the export in a compatible way, but the api needs a schema to maintain and include relationsdata. The schema can be exportet from the Parse API, but is sadly incompatible with parse-server.

This tool downloads and formats the schema for you.

Installation

npm install mongo-compatible-parse-schema

Usage

Download the schema using your Parse.com application id and masterkey and output it as _SCHEMA.json:

mongo-compatible-parse-schema -a <ApplicationId> -m <MasterKey>

Using an exportet schema from the parse api:

mongo-compatible-parse-schema -f <file>

Then import it as the _SCHEMA collection in mongo along with the exportet database.

API

Usage: index [options]

  Options:

    -h, --help                   output usage information
    -V, --version                output the version number
    -a, --application-id [name]  Your parse.com application id. Required if not providing a file.
    -m, --master-key [name]      Your parse.com master key. Required if not providing a file.
    -f, --file [name]            JSON file exportet from https://api.parse.com/1/schemas. Required if not providing an application id and master key.
    -o, --out [name]             Output file name for converted JSON [_SCHEMA.json]
    -v, --verbose                Use verbose mode

mongo-compatible-parse-schema's People

Contributors

ostrgard avatar

Watchers

 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.