From 1e7f3b557915542521ca1123fc7b037adc20f18f Mon Sep 17 00:00:00 2001 From: Lambels Date: Wed, 1 Jun 2022 12:05:27 +0300 Subject: [PATCH] updated docs --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index c87e8a3..d4ffb49 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ This project was made to refresh my memory on websockets and on centralised hubs ![demo giphy](demo.gif) # Run +> Must have go installed. ### Step 1: [Fork the repo](https://github.com/Lambels/drawing-app/fork). ### Step 2: Run the server. Mac/Linux @@ -19,4 +20,20 @@ go run . ``` ### Step 3: Open as many clients. Open the [index.html](client/index.html) file in your browser as done in the demo. +> Note: Each client gets assigned a random and unique color. + +# Run (Docker) +> Must have docker installed. +### Step 1: Clone the repo +### Step 2: Build the docker image from source: +``` +docker build -t drawing-app ./path/to/dockerfile +``` +### Step 3: Run a docker container: +``` +docker run -p 8080:8080 drawing-app +``` +> `Ctrl-c` to quit +### Step 4: Open as many clients. +Open the [index.html](client/index.html) file in your browser as done in the demo. > Note: Each client gets assigned a random and unique color. \ No newline at end of file