https://github.com/robmcelhinney/middleearthsearch
  
  
    ReactJS site to search the full text of the Lord of the Rings trilogy. 
    https://github.com/robmcelhinney/middleearthsearch
  
docker json lord-of-the-rings lotr python reactjs
        Last synced: 6 months ago 
        JSON representation
    
ReactJS site to search the full text of the Lord of the Rings trilogy.
- Host: GitHub
- URL: https://github.com/robmcelhinney/middleearthsearch
- Owner: robmcelhinney
- Created: 2019-04-27T17:27:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T22:36:46.000Z (over 1 year ago)
- Last Synced: 2025-04-18T10:23:15.364Z (7 months ago)
- Topics: docker, json, lord-of-the-rings, lotr, python, reactjs
- Language: JavaScript
- Homepage: https://robmcelhinney.com/MiddleEarthSearch/
- Size: 9.43 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 8
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          # MiddleEarthSearch | Search text from The Lord of the Rings
Viewable at [https://robmcelhinney.github.io/MiddleEarthSearch/](https://robmcelhinney.github.io/MiddleEarthSearch/)
Attempted to make this website so that it could solely be hosted by Github, no need to use an external database or any server side code, a static webpage only.
## Install
    $ git clone git@github.com:robmcelhinney/MiddleEarthSearch.git
    $ cd MiddleEarthSearch
    $ npm install
## Start & watch
    $ npm start
## Simple build for production
    $ npm run build
## Convert epub to txt
The script does require a text file so you may need to run the following command to create a txt file from an epub.
    $ python epub-to-json.py -d books -f The-Fellowship-of-the-Ring.epub
## Create json file that stores book data
Store any books in the books/ directory as .txt files. e.g. ["The-Fellowship-of-the-Ring.txt", "The-Twin-Towers.txt", "Return-of-the-King.txt"]
Python 3 must be installed.
    $ python convert-to-json.py
## Docker
View the docker branch of this repo.
## Future plans
* Store book data in sqlite database rather than in json but keep sqlite parsing limited to the client.
* Add tests.
## Acknowledgments
* Inspiration: [http://asearchoficeandfire.com/](http://asearchoficeandfire.com/)
* Already created: [https://github.com/robmcelhinney/A-Song-Of-Ice-And-Fire-Search](https://github.com/robmcelhinney/A-Song-Of-Ice-And-Fire-Search) made using PHP and a MySQL database.