Static website for Proof of Concept of BookAPI
Read the Docs page
Book list: /api/books/
15 books: /api/books/{1-15}
- The Fingerprint
- All Else is Folly
- Lonely Road
- The Brading Collection
- The Last Battle
- The Horse and His Boy
- The Silver Chair
- Prince Caspian
- The Voyage of the Dawn Treader
- Le Major Anspech
- Napoléon
- Comment s'est faite la Restauration de 1814
- L'Horloge qui chante
- The Last Laird of MacNab
- La Nation canadienne
- Install Go with proper structure
git clonethis repository- Go to bookAPI/server
go run server.go- Go to
localhost:3000
- Follow development but stay in main directory
- In your text editor load
/main.go - Change the file path to the location of your epub to convert.
go run main.goAn XHTML file is now intextcheck/and a JSON file is inserver/api/v0.1/books/- Tweak the
parser/extract.gofile to display the correct JSON. Repeat steps 4 and 5 til right. - Comment the XHTML, JSON parsing and Uncomment the
db.InsertBook()line inmain.go - Execute 4.
Update landing page
Write Bash Script to bulk parse all epubs
MongoDB put on hold: serving raw JSON files to provide easier way to update ugly JSON!
Retrieve books from mongoDB to serve to API endpoint (Medium)
API endpoints to Get from Mongo
Abstract epub schema for parser (Medium)