Is a simple Ruby on Rail web application that attempts to extract all links in any given web application (except facebook and youtube). The application only extracts links of the given url, this means it will not follow identified links that it finds.
- Implement following of links to a depth of 1 as long as it is within the scope of the url domain.
These instructions will get you a copy of the project up and running on your local machine
What things you need to install the software and how to install them
- Ruby-v2.5.1p57
- Rails-v5.2.1
- Postgresql
A step by step series of examples that tell you how to get a development env running
- Clone this repo
cd
tomy-scraper
directory- Install dependencies
bundle install
- Setup figaro
figaro install
- Setup some environment variables in config/application.yml file
NB: replace everything that is inside []
DOMAIN: [your-domain] SMTP_USER_NAME: [your gmail address] SMTP_PASSWORD: [your gmail password]
- Prepare database
rake db:setup
- Migrate database
rake db:migrate
- Start sidekiq
bundle exec sidekiq -q default -q mailers
- Start development server
rails s
😎
bundle exec rspec
- Ruby - The programming language
- Rails - Web framework
- Postgres - Database
- Sidekiq - For background jobs
- Faraday - For external HTTP requests
- Gideon Kimutai
This project is licensed under the MIT License - see the LICENSE.md file for details