From ff9ac0e6d890de145003b0b4a3a0f4c44ca8e60d Mon Sep 17 00:00:00 2001 From: Dima Marhitych Date: Mon, 2 Oct 2023 21:39:21 +0200 Subject: [PATCH] Update makefile and readme --- Makefile | 14 ++++++++++++-- README.md | 13 ++++++++++--- go.sum | 0 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 go.sum diff --git a/Makefile b/Makefile index 20da8a4..36961f3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,16 @@ -EXAMPLE_BUILD_TOOL = go run github.com/hajimehoshi/wasmserve@latest +EXAMPLE_BUILD_TOOL = wasmserve + +.PHONY: setup example build_test test_backend test1 + +setup: + @echo + @echo " ----------------------------------------------------" + @echo "| Setting up... |" + @echo " ----------------------------------------------------" + @echo + + go install github.com/hajimehoshi/wasmserve@latest -.PHONY: example test example: @echo diff --git a/README.md b/README.md index 16e80fa..1c0eb30 100644 --- a/README.md +++ b/README.md @@ -11,18 +11,25 @@ Webzen is a Go UI Framework that targets WebAssembly, enabling you to build web ### How to Run the Example To run the example provided in this repository, follow these steps: +1. Install needed dependencies: -1. Clone this repository to your local machine: +First, make sure you have Go installed, secondly, run make install to install everything needed: + +```shell +make setup +``` + +2. Clone this repository to your local machine: ```shell git clone https://github.com/dimkauzh/webzen.git ``` -2. Navigate to the project folder: +3. Navigate to the project folder: ```shell cd webzen ``` -3. Build and run the example using make and wasmserve. This will start a local development server at localhost:8080: +4. Build and run the example using make and wasmserve. This will start a local development server at localhost:8080: ```shell make example ``` diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e69de29