From f42021937942c9095f5bb8f8f4b64cf67603681f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Jans=C3=B8n=20Engvik?= Date: Thu, 4 Feb 2021 22:40:10 +0100 Subject: [PATCH] docs(readme): building from source --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 73ce466..9a3e858 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,6 @@ $ sbanken accounts list +----------------------------------+--------------------+-----------------------------+-------------+----------+-----------+--------------+ ``` - ## Prerequisites * Access to [Sbankens API](https://sbanken.no/bruke/utviklerportalen/). @@ -26,6 +25,20 @@ $ sbanken accounts list 1. Download the [latest release](https://github.com/engvik/sbanken-cli/releases) 2. Extract the executable binary. +## Building from source + +### Prerequisites + +* [Go >= 1.13](https://golang.org/) + +### Build + +1. Fetch the repository, for example by using git: `git clone git@github.com:engvik/sbanken-cli.git` +2. `cd sbanken-cli` +3. `go build -o sbanken cmd/sbanken/main.go` + +This should produce a binary `sbanken`, see `go help build` for more options. + ## Required configuration The interact with Sbanken you must provide a client ID, client secret and customer ID. See link under [Prerequisites](https://sbanken.no/bruke/utviklerportalen/) on how to obtain the client ID and client secret. The customer ID is your social security number.