Skip to content

How to create an instance of ParseServer, and mount it on a new or existing Express website? #257

Description

@huang1196

No clue about it.
I've searched for some tutorial, most of them are "git clone https://github.com/ParsePlatform/parse-server-example", modify mongo_uri, masterkey blabla, then npm install & npm start. I tried it and it runs successfully.
While I have no idea about how to create an instance from this parse-server project. (I think parse-server-exmaple is an instance of ParseServer, right?)

Activity

  1. gnz00 commented on Feb 5, 2016

    @gnz00

    The example is pretty concise, you can use it in an existing server like so:

    npm install --save parse-server

    import { ParseServer } from 'parse-server';
    
    app.use('/parse', new ParseServer({
        databaseURI: process.env.MONGODB_URL,
        cloud: path.resolve("./dist", "cloud.js"),
        appId: 'myAppId',
        masterKey: '', //Insert a secret master key here
        fileKey: 'optionalFileKey'
    });
  2. gfosco commented on Feb 20, 2016

    @gfosco
    Contributor

    I would refer to you the parse-server-example repo, or the various guides from Heroku and Digital Ocean available on the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions