GithubHelp home page GithubHelp logo

web1992 / react-sql-editor-view Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rishipurwar1/react-sql-editor-view

0.0 1.0 0.0 2.76 MB

React SQL Editor is the easiest way to query data using SQL Query Language. Users can get data of any of the predefined SQL queries either by using SQL Editor or Sidebar Menu.

Home Page: https://react-sql-editor-view.vercel.app/

JavaScript 57.13% CSS 41.28% HTML 1.59%

react-sql-editor-view's Introduction

๐Ÿš€ REACT SQL Editor

This is a REACT SQL Editor built using ReactJs and TailwindCSS.

Homepage

๐Ÿ‘จโ€๐Ÿ’ป Demo

Try out the website : REACT SQL Editor

๐Ÿ‘จโ€๐Ÿ”ง Tech Stack

React TailwindCSS

๐Ÿ‘จโ€๐Ÿ’ป Features

โœ… Users can get data of any of the predefined SQL queries either by using SQL Editor or Sidebar Menu.
โœ… Users can sort data directly by clicking the Table Headers title.
โœ… Users can search for a particular data among many records using the search bar.
โœ… Users can navigate to different pages using pagination.
โœ… Users can download the data in CSV and JSON Format in just one click.
โœ… Users can see query runtime in milliseconds(ms).

โœ๏ธ Predefined SQL Queries

  • select * from customers
  • select * from categories
  • select * from employee_territories
  • select * from order_details
  • select * from orders
  • select * from products
  • select * from regions
  • select * from shippers
  • select * from suppliers
  • select * from territories

โฑ Page Load Time

Page Load time of this website in desktop is in the range of 0.4 s to 0.6s.

I calculated the performance and load time of this website using these two tools Lighthouse Chrome DevTools and BrowserStack SpeedLab.

Lighthouse Chrome DevTools Report (got a perfect ๐Ÿ’ฏ)

lighthouse report

  • First Contentful Paint marks the time at which the first text or image is painted
  • Time to interactive is the amount of time it takes for the page to become fully interactive.
  • Speed Index shows how quickly the contents of a page are visibly populated.
  • Total Blocking Time is the sum of all time periods between FCP and Time to Interactive, when task length exceeded 50ms, expressed in milliseconds.
  • Largest Contentful Paint marks the time at which the largest text or image is painted.
  • Cumulative Layout Shift measures the movement of visible elements within the viewport.

browserstack report

๐Ÿชœ Steps I took to optimize the page load time

  • Used code-splitting with React.Lazy() and Suspense to lazy load the components and split javaScript into multiple chunks using Dynamic runtime Imports for faster page load.
  • Used React.Memo() to optimize the render performance of functional components.
  • Used PurgeCSS to tree-shake unused styles and optimize my final build size.
  • Used Lighthouse DevTools Extension to find the performance issues and fix them using their actionable suggestion.
  • Used vercel to deploy this website to leverage its Vercel Edge Network compression that results in the better performance.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

react-sql-editor-view's People

Contributors

rishipurwar1 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.