Skip to content

jmillerv/aphor

Repository files navigation

aphor

Static Website for Displaying Quotes

This simple website takes in a JSON file and displays quotes that have been collected.

Schema

The schema of the json is as follows

{
      "author": "Cory Doctorow",
      "quote": "A private realm is necessary for human progress.",
      "citation": "How to Destroy Surveillance Capitalism",
      "link": "https://bookshop.org/p/books/how-to-destroy-surveillance-capitalism-cory-doctorow/16078317?ean=9781736205907",
      "tags": ['surviellance', 'privacy', 'capitalism'']
}

Note currently the code only supports the author and quote fields, but I intend to update the website to add a citation and a link to where to find the text being quoted.

Deployment

I built this to be easily deployed using any of the many static website deployment services that exist today.

DigitalOcean allows individuals to deploy three static websites for free using their app platform and they provided a guide.

fly.io provides similar services

Github pages

Environment Variables

I sought to avoid dealing with node, so the location of where the quotes are stored is in env.js under window.QUOTE_STORAGE

Credits

Search functionality provided by the Fuse.js library.

groovepaper.png Background made by https://graphicriver.net/user/krispdesigns

About

Static Website for Displaying Quotes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published