This commit is contained in:
parent
d5c467c691
commit
d28efaf60d
16
BUILD.md
16
BUILD.md
|
@ -11,16 +11,20 @@ If you really have to build it yourself, we recommend you Docker over binaries.
|
|||
|
||||
1. Download the Go Compiler from https://go.dev/dl/ or from your repository's package manager (it's usually called `go` or `golang`)
|
||||
2. Download the Git SCM from https://git-scm.com/download/linux or from your package manager (it's always called `git`)
|
||||
3. Clone the repository by running `git clone https://gitea.massivebox.net/ecodash/ecodash.git ` inside a command prompt
|
||||
4. Switch to the project directory with `cd ecodash`
|
||||
5. Build with `go build src/main/main.go -o ecodash`. This will generate an executable, `ecodash`, in the same directory.
|
||||
3. Download `golangci-lint` from https://golangci-lint.run/
|
||||
4. Clone the repository by running `git clone https://gitea.massivebox.net/ecodash/ecodash.git ` inside a command prompt
|
||||
5. Switch to the project directory with `cd ecodash`
|
||||
6. Run `golangci-lint run` to lint all project files
|
||||
7. Build with `go build src/main/main.go -o ecodash`. This will generate an executable, `ecodash`, in the same directory.
|
||||
|
||||
### Windows
|
||||
|
||||
1. Install the latest release of the Go Compiler for Windows from https://go.dev/dl/
|
||||
2. Install the Git SCM from https://git-scm.com/download/win. The "Standalone installer" is recommended. All the default settings will work fine.
|
||||
3. Clone the repository by running `git clone https://gitea.massivebox.net/ecodash/ecodash.git ` inside a command prompt
|
||||
4. Switch to the project directory with `cd ecodash`
|
||||
5. Build with `go build src/main/main.go -o ecodash`. This will generate an executable, `ecodash.exe`, in the same directory.
|
||||
3. Download `golangci-lint` from https://golangci-lint.run/
|
||||
4. Clone the repository by running `git clone https://gitea.massivebox.net/ecodash/ecodash.git ` inside a command prompt
|
||||
5. Switch to the project directory with `cd ecodash`
|
||||
6. Run `golangci-lint run` to lint all project files
|
||||
7. Build with `go build src/main/main.go -o ecodash`. This will generate an executable, `ecodash.exe`, in the same directory.
|
||||
|
||||
## Docker
|
|
@ -11,6 +11,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
|
||||
// Needed to use sqlite3 databases
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue