Update readme

This commit is contained in:
2021-11-02 18:39:32 +01:00
parent 6e1477f248
commit 3ffbba008b
2 changed files with 8 additions and 7 deletions

View File

@@ -7,4 +7,4 @@ build:
backgroundrun:
go run main.go
backgroundsvelte:
cd svelte && npm run dev
cd svelte && npm install && npm run dev

View File

@@ -4,10 +4,10 @@ Web interface for pixeldrain.com
## Running
Install the package in your $GOPATH with this command:
Clone the repo:
```
go get fornaxian.tech/pixeldrain_web
git clone git@github.com:Fornaxian/pixeldrain_web.git
```
Enter the directory and run main.go with `go run main.go`. It will generate a
@@ -26,7 +26,8 @@ requests are proxied so files you view locally will not be counted.
## Svelte
Most of the frontend uses Svelte. These Svelte files need to be compiled before
they can be used. The Makefile contains from help for this. Running `make run`
starts the dev server on :8081 and compiles and hot-reloads the Svelte
components in the background. To manually compile the Svelte files do `cd svelte
&& npm run build`.
they can be used. The compiled svelte files are not in the repo so you need to
compile them yourself before you can use the development server. The Makefile
contains help for this. Running `make run` starts the dev server on :8081 and
compiles and hot-reloads the Svelte components in the background. To manually
compile the Svelte files do `cd svelte && npm run build`.