Skip to content

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

Notifications You must be signed in to change notification settings

sambitos23/react-sql-editor

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published