This Project is hosted by Heroku
This API provide a simple html page parse content.
Postgresql is used as main database.
Redis is used to store queue for background jobs and as cache to store ActiveModelSerializers fragments.
Sidekiq is used to run background jobs.
- rvm
- ruby 2.5
- postgresql (9.4 or greater)
- redis (4 or greater) (queue and cache)
Unit tests were written using Rspec.
In addition to Rspec, other tools were used to measure the quality of the code:
- brakeman (Scan the application to find vulnerabilities)
- fasterer (Performance improvement tips)
- rubocop (Review the code and suggest improvements based on the Ruby/Rails Community Style Guide)
- rubycritic (Analyze code complexity)
- simplecov (Analyzes the percentage of test coverage of the code)
To run the test suite:
bundle exec rake
This repository is configured to run the Continuous Integration scripts for each interaction.
The build status can be followed by the following buttons
git clone https://github.com/matheusvetor/furry-memory.git
cd furry-memory
rvm install ruby-2.5.0
bundle install
Sidekiq needs to be running beside the application to perform background processing
bundle exec sidekiq
Run the server
rails s
curl -X GET "https://frozen-tundra-59098.herokuapp.com/api/v1/pages?per_page=1&page=2"
curl -X POST "https://frozen-tundra-59098.herokuapp.com/api/v1/pages?url=https://github.com/matheusvetor"