- Notifications
You must be signed in to change notification settings - Fork0
mjesar/performance-monitor-api
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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 IndexGoogle’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
Database creation
- database: postgresSql
- commands
- rails db:create
- rails db:migrate
Configuration
bundle install rails s- How to run the test suite
rspecServices
- 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
- run:
- You can change time in cronotab.rb file
To run rake task anytime resun testrun:
rake rerun_test:run_test- To rerun PageSpeed Insights API test start scheduling in background using crono gem
Recieve emailsTo recieve email using letter_openervist:http://localhost:3000/letter_opener/
Postman collection is attacted in repository please clone and import it in postman
About
Performance Monitoring API to test webpages speed using Google PageSpeed Insights API
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.