https://github.com/schollz/quotation-explorer
Explore and search over 120,000 quotations, with the click of a mouse :earth_americas::speech_balloon:
https://github.com/schollz/quotation-explorer
Last synced: 6 months ago
JSON representation
Explore and search over 120,000 quotations, with the click of a mouse :earth_americas::speech_balloon:
- Host: GitHub
- URL: https://github.com/schollz/quotation-explorer
- Owner: schollz
- License: mit
- Created: 2016-12-31T02:22:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-03T19:29:33.000Z (about 8 years ago)
- Last Synced: 2025-04-19T23:54:24.109Z (6 months ago)
- Language: Go
- Homepage: https://quotes.schollz.com
- Size: 7.6 MB
- Stars: 19
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quotation Explorer :earth_americas: :speech_balloon:
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](https://quotes.schollz.com) as well as [a way to get quotation JSONs with GET requests](https://quotes.schollz.com/random/3.json).## Installation
```
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!)
```## Usage
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`.
## License
MIT