herrnhuter-daily

command module
v0.0.0-...-9029f94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

README

herrnhuter-daily

Go Report Card

This Project serves daily bible verses provided by the Herrnhuter Brüdergemeinde via a REST API.

Installation

The software is written in go. To build it a go environment is needed. Install Go...

    git clone https://github.com/Kaitsh/herrnhuter-daily && cd herrnhuter-daily
    go build -o server

To run the server first build the source, then use the command:

    ./server

The server serves the API on :3333/api:

Ex.:

    curl http://localhost:3333/api/today

Routes

The currently available routes are:

  • General Information and Documentation: /
  • Verse of the Day: /v
  • All Verses of a Specific Year: /v/yyyy
  • All Verses of a Specific Month: /v/yyyy/mm
  • Verse of a Specific Date: /v/yyyy/mm/dd

Config

Currently there is no config available. To change settings please change them directly in code. The port is a global variable in the main.go file. Routes can be adjusted in the routes.go file.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL