Giter VIP home page Giter VIP logo

performance-monitor-api's Introduction

README

Overview

Google’s Page Speed Insights is a web service that rates the performance of a website using Lighthouse. This project provides an API that checks if a given URL meets performance criteria specified by the user.

The performance criteria to be evaluated are:

Time to First Byte (TTFB) The time it takes for the web server to start responding with data

Time to First Meaningful Paint (TTFP) The time it takes for the browser to paint the page on the screen

Time to Interactive (TTI) The time it takes for all JavaScript to be downloaded, parsed, and executed

Speed Index Google’s speed rating for the site

To application up and running.

Things you may want to cover:

  • Ruby version: ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-linux]

  • Rails version: rails 5.0.0

  1. Database creation

    • database: postgresSql
    • commands
      • rails db:create
      • rails db:migrate
  2. Configuration

bundle install 
rails s
  1. How to run the test suite
rspec 
  1. Services

    • To rerun PageSpeed Insights API test start scheduling in background using crono gem
      • run: bundle exec crono RAILS_ENV=development
      • current time set at 08:55pm
    • You can change time in cronotab.rb file

    To run rake task anytime resun test run: rake rerun_test:run_test

  2. Recieve emails To recieve email using letter_opener vist: http://localhost:3000/letter_opener/

  3. Postman collection is attacted in repository please clone and import it in postman

performance-monitor-api's People

Contributors

mjesar avatar

Stargazers

 avatar

Watchers

 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.