Explore and search over 120,000 quotations, with the click of a mouse πŸŒŽπŸ’¬
Switch branches/tags
Nothing to show
Clone or download
Latest commit 1a1037a Oct 3, 2017
Failed to load latest commit information.
getquote Cache quote Feb 8, 2017
vendor Vendoring Oct 3, 2017
Gopkg.lock Vendoring Oct 3, 2017
Gopkg.toml Vendoring Oct 3, 2017
LICENSE Initial commit Dec 31, 2016
README.md Updated readme πŸ“– Dec 31, 2016
db.go Updated so it functions now on first run Feb 8, 2017
main.go Use random quote pool instead Feb 8, 2017
quotations.json First commit Dec 31, 2016
quotes.html First commit Dec 31, 2016
stopwords.go First commit Dec 31, 2016
utils.go First commit Dec 31, 2016


Quotation Explorer 🌎 πŸ’¬

I wanted to write an web app using only the Golang standard library for routing. I also wanted a simple web API for getting a random quote as JSON.

This app fulfills both my goals: it is a web app that uses the stdlib for routing, that allows you to click on a single word to quickly and easily explore quotations as well as a way to get quotation JSONs with GET requests.


git clone https://github.com/schollz/quotation-explorer.git
cd quotation-explorer
go get github.com/boltdb/bolt/...
go get gopkg.in/cheggaaa/pb.v1
go build
./quotation-explorer       (this will load the quotations.json into db)
./quotation-explorer       (this will now run the app!)


Open a web browser and explore quotations! Explore over 120,000 quotes, with the click of a mouse.

More information

The quotations are stored in the BoltDB quotations.db. The quotations themselves are stored in a bucket data and indexed in a bucket index.