sambitos23 / react-sql-editor

A web-based application capable of running SQL queries and displaying the results of said query.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ’» REACT SQL Editor

πŸ“š Description

Create, design and implement a web-based application capable of running SQL queries and displaying the results of said query. The application must include a space which accepts SQL queries in the form of user inputs, then runs the given query, and displays the result within the application..

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

πŸ‘¨β€πŸ’» Live Demo

Try out the website : REACT SQL Editor

πŸ‘¨β€πŸ”§ Tech Stack

React TailwindCSS

βš™οΈ Dependencies

  • react-ace
  • react-csv
  • react-hot-toast
  • tailwind-scrollbar-hide

πŸ‘¨β€πŸ’» Features

βœ… Users can get data of any of the predefined SQL queries on the left Sidebar menu.
βœ… Users can view all the table column on Right Sidebar menu.
βœ… Users can check all the table value on clicking Table name of Right Sidebar menu.
βœ… Users can download the data in CSV Format in just one click.
βœ… Users can see query runtime in milliseconds(ms).

✍️ Predefined SQL Queries

  • select * from customers;
  • select * from suppliers;
  • select * from products;
  • select contact_name, address,city,postal_code, country from customers limit 18;

⏱ Page Load Time

Page Load time of this website in desktop is in the range of 0.4 s to 0.6s. we can check code spnappyness GTmetrix Grade.

GTmetrix Grade Report

Laptop performance view

web.dev Report

Mobile performance view

web.dev Report

πŸͺœ Steps I took to optimize the page load time

  • 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:

npm install

To install all the packages in package.json. This will install all the dependencies and devDependencies.

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

npm run 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.

πŸš€ Project Output

Homepage

About

A web-based application capable of running SQL queries and displaying the results of said query.

https://react-sql-editor-beta.vercel.app/


Languages

Language:JavaScript 96.7%Language:HTML 3.0%Language:CSS 0.3%