Copy the example configuration to `config.toml` and edit `Dir` to the appropriate directory (see "Configuration" below)
$ cp example.config.toml config.toml
$ nano config.toml
Finally, run it.
@@ -82,4 +80,15 @@ $ screen # so you can detatch without killing it
(screen) $ ./api
Now bibleget will be running on port 5500.
Now bibleget will be running on port 5500 (or any other port you set in `config.toml`).
The default config file is `config.toml`, but you can move it wherever if you change the `configFile` variable in `main.go`.
To change the port that bibleget uses, change `5500` in `Port: 5500` to whatever port you want it to run on.
To change the Bible translation returned when the user doesn't specify one, change `Version: "web"` to the translation you would prefer.
Make sure to change the value of `Dir` under `Bible` to where you downloaded the Gratis Bibles (without the trailing slash). If you followed the above installation instructions exactly, it should be `../gratisbibles`.
Blank quotes (`""`) means it uses the default Heb12 Gratis Bible directory (`~/.local/share/heb12/gratis`).