项目作者: gmunumel

项目描述 :
Get discount information automatically
高级语言: Ruby
项目地址: git://github.com/gmunumel/el-corte-ingles-bot.git
创建时间: 2017-05-16T17:43:33Z
项目社区:https://github.com/gmunumel/el-corte-ingles-bot

开源协议:

下载


README

This project is for run a selenium script to retrieve information regarding discount in
el corte ingles page. The script will be schedule to be execute every hour using sidekiq
and sidekiq-scheduler gems. If its execution found useful information will be stored in a
Product database and will be schedule to be send via email using sidekiq again.

For send email we use gmail smtp server. Would be better configured mail trap or another
mail testing service (TODO).

To run the app:

  • Run Redis server

    1. redis-server
  • Run Rails server

    1. rails s
  • Run Sidekiq

    1. bundle exec sidekiq -q default -q mailers
  • For testing purposes, send email via rails console

    1. NotificationMailer.mailer('Bugs').deliver_later
  • To add to queue stack

    1. sidekiq -r ./app/jobs/check_discount_job.rb
  • To run the queues jobs

    1. bundle exec sidekiq -q default -q mailers