Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.89 KB

TECHNICAL-SETUP.md

File metadata and controls

65 lines (39 loc) · 1.89 KB

Technical Setup

To ensure you have a successful experience working with koch, your local system must meet these technical requirements.

Install Go

This installation method removes existing Go installations, installs Go in /usr/local/go/bin/go, and sets the environment variables.

  1. Go to https://golang.org/dl.
  2. Download the binary release that is suitable for your system.
  3. Follow the installation instructions.

Note: We recommend not using brew to install Go.

Install Typescript

If using JavaScript for web services, koch recommends and expects users to write their files in TypeScript for better safety.

To install the tsc transpiler, please follow the official TypeScript instructions.

Install Git pre-commit Hook

Git pre-commit hooks run before any commit to the Git repository. These hooks verify that each commit passes basic formatting and linting checks.

  • Homebrew

    brew install pre-commit
  • Pip package manager

    pip install pre-commit

Install pre-commit in Your Local Repo

After installing the pre-commit binary, run the following command in the base directory of the koch repository:

pre-commit install

Now, any time git commit * is run, the pre-commit hooks run before the commit can be finalized.

Install Go Linters Aggregator

The golangci-lint linter runner is used in the make lint command that is provided to developers.

To install golangci-lint into $GOPATH/bin, run:

curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1

Install goimports tool

The goimports tool is used int the make format command taht is provided to developers.

To install goimports using the go get command:

go get golang.org/x/tools/cmd/goimports