Skip to content

matheusvetor/furry-memory

Repository files navigation

Readme

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.

Dependencies

  • rvm
  • ruby 2.5
  • postgresql (9.4 or greater)
  • redis (4 or greater) (queue and cache)

Tests

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

Continuous Integration

This repository is configured to run the Continuous Integration scripts for each interaction.

The build status can be followed by the following buttons

Build Status Coverage Status

Run App

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

Api

Pages

GET - /api/v1/pages

curl -X GET "https://frozen-tundra-59098.herokuapp.com/api/v1/pages?per_page=1&page=2"

POST - /api/v1/pages

curl -X POST "https://frozen-tundra-59098.herokuapp.com/api/v1/pages?url=https://github.com/matheusvetor"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages