Coder Social home page Coder Social logo

no_sql_tp03's Introduction

no_sql_tp03

##Subjet Thanks to Redis, create queue management system that can :

  • Add a job
  • Do the job and save the resul in the Elasticsearch
  • Show the number of jobs that it has to do
  • Show the number of jobs that have been done

It was decided that the job will send a 'GET' HTTP request on an url. The following markup language will be save in the Elasticsearch : title, url, keywords and description. Then it will show the page title and the page content to the user. Finally, it will display jobs that will be executed and the jobs that have been already done.

####What do you need ?

  • Ruby : dynamic, open source programming language with a focus on simplicity and productivity.
  • Redis : open source, BSD licensed, advanced key-value cache and store

gem install redis

  • Elasticsearch : open source, distributed, real-time search and analytics engine.

brew install elasticsearch

  • JSon : lightweight data-interchange format

gem install json ( to parse HTML)

  • Mechanize : library used for automating interaction with websites

gem install mechanize

<!> You can launch <!>

bundle install

####Where do I start ?

  1. Launch Redis server :

redis-server

  1. Launch Elasticsearch :

elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml

  1. Create jobs (irb)

load 'main.rb'

  1. Launch daemon (irb)

load 'daemon.rb'

  1. Find a saved data

http://localhost:9200/pages/page/_id

####For more information, please see below : http://slides.com/mathieulaporte-1/nosql#/1

no_sql_tp03's People

Contributors

kimsavinfo avatar

Watchers

 avatar  avatar

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.