Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/montymxb/parse-server-test
Lightwight ParseServer Implementation for Testing
https://github.com/montymxb/parse-server-test
lightwight-parseserver parse-server
Last synced: 2 days ago
JSON representation
Lightwight ParseServer Implementation for Testing
- Host: GitHub
- URL: https://github.com/montymxb/parse-server-test
- Owner: montymxb
- Created: 2017-02-01T03:01:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-30T01:08:11.000Z (almost 6 years ago)
- Last Synced: 2024-10-28T16:42:45.437Z (18 days ago)
- Topics: lightwight-parseserver, parse-server
- Language: JavaScript
- Size: 124 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/ParsePlatform/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.```bash
# 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`.
```bash
mongodb-runner start
node server.js
```
When you're done you'll want to make sure you shutdown mongodb again.
```bash
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](https://github.com/parse-community/parse-server/#configuration).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.