|
@@ -17,6 +17,9 @@ Run your own server on Gitpod!
|
|
## Usage
|
|
## Usage
|
|
|
|
|
|
### Run server
|
|
### Run server
|
|
|
|
+
|
|
|
|
+#### Natively
|
|
|
|
+
|
|
If you don't want to develop anything, just enter few commands below.
|
|
If you don't want to develop anything, just enter few commands below.
|
|
|
|
|
|
1. Install the package globally:
|
|
1. Install the package globally:
|
|
@@ -31,11 +34,19 @@ If you don't want to develop anything, just enter few commands below.
|
|
```
|
|
```
|
|
3. Check it: http://127.0.0.1:9000/myapp It should returns JSON with name, description and website fields.
|
|
3. Check it: http://127.0.0.1:9000/myapp It should returns JSON with name, description and website fields.
|
|
|
|
|
|
|
|
+#### Docker
|
|
|
|
+
|
|
Also, you can use Docker image to run a new container:
|
|
Also, you can use Docker image to run a new container:
|
|
```sh
|
|
```sh
|
|
$ docker run -p 9000:9000 -d peerjs/peerjs-server
|
|
$ docker run -p 9000:9000 -d peerjs/peerjs-server
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+##### Kubernetes
|
|
|
|
+
|
|
|
|
+```sh
|
|
|
|
+$ kubectl run peerjs-server --image=peerjs/peerjs-server --port 9000 --expose -- --port 9000 --path /myapp
|
|
|
|
+```
|
|
|
|
+
|
|
### Create a custom server:
|
|
### Create a custom server:
|
|
If you have your own server, you can attach PeerServer.
|
|
If you have your own server, you can attach PeerServer.
|
|
|
|
|