parse-server-test

1.3.7 • Public • Published

parse-server-test

Lightwight ParseServer Implementation for Testing

What is this?

An easy way to deploy mongodb and parse-server for testing purposes. This is setup with the intention for testing the Parse PHP SDK, but, being a fully fledged instance of parse server, would work just as well with any of the other Parse sdks.

What do I need for this to work?

You'll need to have npm installed. If you don't already have npm installed you can get started here.

How to Get Started.

You can clone down this project and run npm install to set everything up. Npm installations are done locally to keep things nice and tidy.

# start the server
npm start

...

# stop the server
npm stop

You can run the server directly from the project directory, in case you want to get direct output directly to the console rather than just the logs. Note that if you start up this way you will first want to start up a test db using mongodb-runner.

mongodb-runner start
node server.js

When you're done you'll want to make sure you shutdown mongodb again.

mongodb-runner stop

If you want to customize your test server you need only edit the configuration in server.js, the bit that's passed in to create a new instance of ParseServer. You can find more details about configuring your parse-server here.

Verbose output is enabled by default to help with testing. If you need to make it a bit quieter you can remove the following line from the config in server.js.

verbose: true

Issues.

If you have any problems running the script or have any suggestions to add new functionality feel free to open an issue or PR. Currently the entire server is setup via arguments passed to parse-server on the command line.

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i parse-server-test

    Weekly Downloads

    0

    Version

    1.3.7

    License

    ISC

    Unpacked Size

    5.78 kB

    Total Files

    4

    Last publish

    Collaborators

    • montymxb