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

Commit

Permalink
Merge pull request #25 from engvik/docs/building-from-source
Browse files Browse the repository at this point in the history
docs(readme): building from source
  • Loading branch information
engvik authored Feb 7, 2021
2 parents 191d93e + f420219 commit 8e4d72b
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 8e4d72b

Please sign in to comment.