Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Removed WebUI references
  • Loading branch information
AxnNxs committed Jun 12, 2023
1 parent be151a0 commit 8210b63
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,13 @@ You need to:
* Write API code inside `service/api`, and create any further package inside `service/` (or subdirectories)

## How to build
If you're not using the WebUI, or if you don't want to embed the WebUI into the final executable, then:
To run backend open terminal and write:
```shell
go build ./cmd/webapi/
```

If you're using the WebUI and you want to embed it into the final executable:
```shell
./open-npm.sh
# (here you're inside the NPM container)
npm run build-embed
exit
# (outside the NPM container)
go build -tags webui ./cmd/webapi/
```

## How to run (in development mode)
You can launch the backend only using:
```shell
go run ./cmd/webapi/
```

If you want to launch the WebUI, open a new tab and launch:
```shell
./open-npm.sh
# (here you're inside the NPM container)
npm run dev
```

0 comments on commit 8210b63

Please sign in to comment.