Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
docs(readme): building from source
Browse files Browse the repository at this point in the history
  • Loading branch information
engvik committed Feb 7, 2021
1 parent 191d93e commit f420219
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ $ sbanken accounts list
+----------------------------------+--------------------+-----------------------------+-------------+----------+-----------+--------------+
```


## Prerequisites

* Access to [Sbankens API](https://sbanken.no/bruke/utviklerportalen/).
Expand All @@ -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.
Expand Down

0 comments on commit f420219

Please sign in to comment.