Skip to content

DavyJ0nes/qotd

Repository files navigation

Go Report Card

Quote of the Day

Description

  • Toy App that displays a quote of the day in a simple web page.
  • Gets Quotes from theysaidso
  • Tries to adhere to the twelve-factor-app methodology.
  • The deployment artifact is a docker container.
  • Caches API request for one day (it is a quote of the day after all ;) ).
  • Having the simple cache means that only one request a day is made.

Deployment

  1. Copy env.example to .env and update with relevant values
  2. You can deploy using the deploy script, which automates compiling, build container and deploying to docker host

Ideas for future

  • Could abstract out to allow use with any API
  • If set it for any API then would need to allow for authorisation

License

This package is distributed under the BSD-style license found in the LICENSE file.

About

Simple Site that shows a quote of the day from https://theysaidso.com/api/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published