Skip to content

Commit cf36062

Browse files
committed
Merge pull request #1086 from ParsePlatform/readme2
Expand env. variable list, misc copy edits
2 parents 5decaec + 3398461 commit cf36062

File tree

2 files changed

+43
-19
lines changed

2 files changed

+43
-19
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
For implementation related questions or technical support, please refer to the [stackoverflow](http://stackoverflow.com/questions/tagged/parse.com) community.
1+
For implementation related questions or technical support, please refer to the [Stack Overflow](http://stackoverflow.com/questions/tagged/parse.com) and [Server Fault](https://serverfault.com/tags/parse) communities.
22

33
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
44

README.md

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ Parse Server works with the Express web application framework. It can be added t
1010

1111
# Getting Started
1212

13-
The fastest and easiest way to get started is to run MongoDB and Parse Server locally:
13+
The fastest and easiest way to get started is to run MongoDB and Parse Server locally.
14+
15+
## Running Parse Server locally
1416

1517
```
1618
$ npm install -g parse-server mongodb-runner
@@ -113,11 +115,9 @@ var express = require('express');
113115
var ParseServer = require('parse-server').ParseServer;
114116
var app = express();
115117

116-
// Specify the connection string for your mongodb database
117-
// and the location to your Parse cloud code
118118
var api = new ParseServer({
119-
databaseURI: 'mongodb://localhost:27017/dev',
120-
cloud: '/home/myApp/cloud/main.js', // Provide an absolute path
119+
databaseURI: 'mongodb://localhost:27017/dev', // Connection string for your MongoDB database
120+
cloud: '/home/myApp/cloud/main.js', // Absolute path to your Cloud Code
121121
appId: 'myAppId',
122122
masterKey: 'myMasterKey', // Keep this key secret!
123123
fileKey: 'optionalFileKey',
@@ -132,6 +132,8 @@ app.listen(1337, function() {
132132
});
133133
```
134134

135+
For a full list of available options, run `parse-server --help`.
136+
135137
# Documentation
136138

137139
The full documentation for Parse Server is available in the [wiki](https://github.com/ParsePlatform/parse-server/wiki). The [Parse Server guide](https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide) is a good place to get started. If you're interested in developing for Parse Server, the [Development guide](https://github.com/ParsePlatform/parse-server/wiki/Development-Guide) will help you get set up.
@@ -151,10 +153,10 @@ For the full list of available options, run `parse-server --help`.
151153
* `appId` **(required)** - The application id to host with this server instance. You can use any arbitrary string. For migrated apps, this should match your hosted Parse app.
152154
* `masterKey` **(required)** - The master key to use for overriding ACL security. You can use any arbitrary string. Keep it secret! For migrated apps, this should match your hosted Parse app.
153155
* `databaseURI` **(required)** - The connection string for your database, i.e. `mongodb://user:[email protected]/dbname`.
156+
* `port` - The default port is 1337, specify this parameter to use a different port.
157+
* `serverURL` - URL to your Parse Server (don't forget to specify http:// or https://). This URL will be used when making requests to Parse Server from Cloud Code.
154158
* `cloud` - The absolute path to your cloud code `main.js` file.
155-
* `facebookAppIds` - An array of valid Facebook application IDs.
156-
* `serverURL` - URL which will be used by Cloud Code functions to make requests against.
157-
* `push` - Configuration options for APNS and GCM push. See the [wiki entry](https://github.com/ParsePlatform/parse-server/wiki/Push).
159+
* `push` - Configuration options for APNS and GCM push. See the [Push Notifications wiki entry](https://github.com/ParsePlatform/parse-server/wiki/Push).
158160

159161
#### Client key options
160162

@@ -168,19 +170,21 @@ The client keys used with Parse are no longer necessary with Parse Server. If yo
168170
#### Advanced options
169171

170172
* `fileKey` - For migrated apps, this is necessary to provide access to files already hosted on Parse.
171-
* `filesAdapter` - The default behavior (GridStore) can be changed by creating an adapter class (see [`FilesAdapter.js`](https://github.com/ParsePlatform/parse-server/blob/master/src/Adapters/Files/FilesAdapter.js)).
172-
* `maxUploadSize` - Max file size for uploads. Defaults to 20mb.
173-
* `databaseAdapter` (unfinished) - The backing store can be changed by creating an adapter class (see `DatabaseAdapter.js`).
174-
* `loggerAdapter` - The default behavior/transport (File) can be changed by creating an adapter class (see [`LoggerAdapter.js`](https://github.com/ParsePlatform/parse-server/blob/master/src/Adapters/Logger/LoggerAdapter.js)).
175-
* `enableAnonymousUsers` - Set to false to disable anonymous users. Defaults to true.
176173
* `allowClientClassCreation` - Set to false to disable client class creation. Defaults to true.
174+
* `enableAnonymousUsers` - Set to false to disable anonymous users. Defaults to true.
177175
* `oauth` - Used to configure support for [3rd party authentication](https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#oauth).
176+
* `facebookAppIds` - An array of valid Facebook application IDs that users may authenticate with.
177+
* `mountPath` - Mount path for the server. Defaults to `/parse`.
178+
* `filesAdapter` - The default behavior (GridStore) can be changed by creating an adapter class (see [`FilesAdapter.js`](https://github.com/ParsePlatform/parse-server/blob/master/src/Adapters/Files/FilesAdapter.js)).
179+
* `maxUploadSize` - Max file size for uploads. Defaults to 20 MB.
180+
* `loggerAdapter` - The default behavior/transport (File) can be changed by creating an adapter class (see [`LoggerAdapter.js`](https://github.com/ParsePlatform/parse-server/blob/master/src/Adapters/Logger/LoggerAdapter.js)).
181+
* `databaseAdapter` - The backing store can be changed by creating an adapter class (see `DatabaseAdapter.js`). Defaults to `MongoStorageAdapter`.
178182

179183
### Using environment variables to configure Parse Server
180184

181185
You may configure the Parse Server using environment variables:
182186

183-
```
187+
```bash
184188
PORT
185189
PARSE_SERVER_APPLICATION_ID
186190
PARSE_SERVER_MASTER_KEY
@@ -191,14 +195,34 @@ PARSE_SERVER_CLOUD_CODE_MAIN
191195

192196
The default port is 1337, to use a different port set the PORT environment variable:
193197

194-
`$ PORT=8080 parse-server --appId=APPLICATION_ID --masterKey=MASTER_KEY`
198+
```bash
199+
$ PORT=8080 parse-server --appId APPLICATION_ID --masterKey MASTER_KEY
200+
```
195201

196202
For the full list of configurable environment variables, run `parse-server --help`.
197203

198-
##### Configuring File Adapters
204+
### Configuring File Adapters
205+
206+
Parse Server allows developers to choose from several options when hosting files:
207+
208+
* `GridStoreAdapter`, which is backed by MongoDB;
209+
* `S3Adapter`, which is backed by [Amazon S3](https://aws.amazon.com/s3/); or
210+
* `GCSAdapter`, which is backed by [Google Cloud Storage](https://cloud.google.com/storage/)
211+
212+
`GridStoreAdapter` is used by default and requires no setup, but if you're interested in using S3 or Google Cloud Storage, additional configuration information is available in the [Parse Server wiki](https://github.com/ParsePlatform/parse-server/wiki/Configuring-File-Adapters).
213+
214+
# Support
215+
216+
For implementation related questions or technical support, please refer to the [Stack Overflow](http://stackoverflow.com/questions/tagged/parse.com) and [Server Fault](https://serverfault.com/tags/parse) communities.
217+
218+
If you believe you've found an issue with Parse Server, make sure these boxes are checked before [reporting an issue](https://github.com/ParsePlatform/parse-server/issues):
219+
220+
- [ ] You've met the [prerequisites](https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#prerequisites).
221+
222+
- [ ] You're running the [latest version](https://github.com/ParsePlatform/parse-server/releases) of Parse Server.
199223

200-
Parse Server allows developers to choose from several options when hosting files: the `GridStoreAdapter`, which backed by MongoDB; the `S3Adapter`, which is backed by [Amazon S3](https://aws.amazon.com/s3/); or the `GCSAdapter`, which is backed by [Google Cloud Storage](https://cloud.google.com/storage/). `GridStoreAdapter` is used by default and requires no setup, but if you're interested in using S3 or GCS, [additional configuration information is available](https://github.com/ParsePlatform/parse-server/wiki/Configuring-File-Adapters).
224+
- [ ] You've searched through [existing issues](https://github.com/ParsePlatform/parse-server/issues?utf8=%E2%9C%93&q=). Chances are that your issue has been reported or resolved before.
201225

202-
## Contributing
226+
# Contributing
203227

204228
We really want Parse to be yours, to see it grow and thrive in the open source community. Please see the [Contributing to Parse Server guide](CONTRIBUTING.md).

0 commit comments

Comments
 (0)