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.
Try out the website : REACT SQL Editor
- react-ace
- react-csv
- react-hot-toast
- tailwind-scrollbar-hide
✅ 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).
select * from customers;
select * from suppliers;
select * from products;
select contact_name, address,city,postal_code, country from customers limit 18;
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.
Laptop performance view
Mobile performance view
- 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.
In the project directory, you can run:
To install all the packages in package.json. This will install all the dependencies and devDependencies.
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.
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.