Add syntax highlighting for bash codes (#6302)
This commit is contained in:
committed by
Diamond Lewis
parent
47454ef5b8
commit
832a081bfb
@@ -85,7 +85,7 @@ Before you start make sure you have installed:
|
|||||||
- Optionally [Docker](https://www.docker.com/)
|
- Optionally [Docker](https://www.docker.com/)
|
||||||
|
|
||||||
### Locally
|
### Locally
|
||||||
```
|
```bash
|
||||||
$ npm install -g parse-server mongodb-runner
|
$ npm install -g parse-server mongodb-runner
|
||||||
$ mongodb-runner start
|
$ mongodb-runner start
|
||||||
$ parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://localhost/test
|
$ 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
|
### Inside a Docker container
|
||||||
```
|
```bash
|
||||||
$ git clone https://github.com/parse-community/parse-server
|
$ git clone https://github.com/parse-community/parse-server
|
||||||
$ cd parse-server
|
$ cd parse-server
|
||||||
$ docker build --tag 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:
|
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
|
```bash
|
||||||
curl -X POST \
|
$ curl -X POST \
|
||||||
-H "X-Parse-Application-Id: APPLICATION_ID" \
|
-H "X-Parse-Application-Id: APPLICATION_ID" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \
|
-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:
|
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 \
|
$ curl -X GET \
|
||||||
-H "X-Parse-Application-Id: APPLICATION_ID" \
|
-H "X-Parse-Application-Id: APPLICATION_ID" \
|
||||||
http://localhost:1337/parse/classes/GameScore
|
http://localhost:1337/parse/classes/GameScore
|
||||||
|
|||||||
Reference in New Issue
Block a user