Coder Social home page Coder Social logo

crawler_bot's Introduction

๐Ÿ’Ž Crawler Bot App

Ruby

Heroku app: TBD(To be determined)

This is sample project that crawling the latest best news and show them.

Version

  • Current ruby version 3.0.0
  • Bundler version 2.2.3
  • Rails version 6.1.X
  • Mysql
  • Tailwindcss

Dependencies

Some main gems such as:

  • puma
  • bootsnap
  • dotenv
  • nokogiri
  • ruby-readability
  • httparty
  • redis-rails
  • fastimage
  • ....

๐Ÿš€ Quick start


  1. Clone this repo:

    git clone https://github.com/nhthach/crawler_bot.git crawler_bot
    cd crawler_bot
  2. Clone .env_example to .env for local development. We set it up with default rails 3000 and client 8000 ports:

    cp .env_example .env
    
  3. Install the dependencies:

    bundle install
    yarn install
  4. Run DB

    Make sure the Mysql is running on localhost.

    rake db:create
    rake db:migrate
  5. Run redis server

    a. Install redis server:

    brew install redis
    

    b. Run redis server:

    redis-server
    
  6. Run the development server:

    rails s

๐ŸŽ How to work

  1. You can run rake task by manual: rails scheduler:crawling
  2. Access http://localhost:3000/. Let's enjoy the result :)

crawler_bot's People

Contributors

nhthach 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.