Skip to content

Commit

Permalink
Update makefile and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Oct 2, 2023
1 parent 84638f2 commit ff9ac0e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
Empty file added go.sum
Empty file.

0 comments on commit ff9ac0e

Please sign in to comment.