Add syntax highlighting for bash codes (#6302)

This commit is contained in:
Jerome De Leon
2019-12-28 02:28:13 +08:00
committed by Diamond Lewis
parent 47454ef5b8
commit 832a081bfb

View File

@@ -85,7 +85,7 @@ Before you start make sure you have installed:
- Optionally [Docker](https://www.docker.com/)
### Locally
```
```bash
$ npm install -g parse-server mongodb-runner
$ mongodb-runner start
$ parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://localhost/test
@@ -94,7 +94,7 @@ $ parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongo
### Inside a Docker container
```
```bash
$ git clone https://github.com/parse-community/parse-server
$ cd parse-server
$ docker build --tag parse-server .
@@ -113,7 +113,7 @@ That's it! You are now running a standalone version of Parse Server on your mach
Now that you're running Parse Server, it is time to save your first object. We'll use the [REST API](http://docs.parseplatform.org/rest/guide), but you can easily do the same using any of the [Parse SDKs](http://parseplatform.org/#sdks). Run the following:
```bash
curl -X POST \
$ curl -X POST \
-H "X-Parse-Application-Id: APPLICATION_ID" \
-H "Content-Type: application/json" \
-d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \
@@ -150,7 +150,7 @@ $ curl -X GET \
Keeping tracks of individual object ids is not ideal, however. In most cases you will want to run a query over the collection, like so:
```
```bash
$ curl -X GET \
-H "X-Parse-Application-Id: APPLICATION_ID" \
http://localhost:1337/parse/classes/GameScore