diff --git a/README.md b/README.md index 320d76b..e0fb553 100644 --- a/README.md +++ b/README.md @@ -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 -```