Giter Club home page Giter Club logo

elastic_librarything's Introduction

Elastic librarything

A node script to import librarything data into elasticsearch

Step 0 : Install an elasticsearch docker instance (optional)

Step 1 : Import data

  • install dependencies npm install
  • launch import script node ./bin/elastic-librarything.js --reset
    • with the option --reset to initiate the database
    • with the option --url=http://... to use a custom elasticsearch instance (default http://localhost:9200, the docker instance set in step 0)
    • with the option --index=myindex to use a custom elasticsearch index (default librarything)

Step 2 : View data with Kibana (optional)

  • Make sure docker instances are started docker-compose start
  • open the page http://127.0.0.1:5601 in your web browser
  • configure an index pattern in kibana
    • unselect 'index contains time-based events'
    • replace logstash-* by the elasticsearch.index you configured in settings.js
    • click Create
  • explore your data in the Discover, Visualize and Dashboard pages.

elastic_librarything's People

Contributors

mmai avatar

Watchers

 avatar  avatar  avatar

elastic_librarything's Issues

elasticsearch CORS configuration

edit config/elasticsearch.yml on docker image :

network.host: 0.0.0.0
http.cors.enabled : true
http.cors.allow-origin: "*"
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : "X-Requested-With,X-Auth-Token,Content-Type, Content-Length, uthorization"

smart updates

  • get entry_date of last indexed book
  • request librarything books entered since that date

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.