https://github.com/codersguild/websql-application
A web application to run online queries to MySQL server. Node.js & Express. Used to demonstrate simple SQL query execution and caching of reading results on a Redis cluster. Also to learn the vulnerabilities involved.
https://github.com/codersguild/websql-application
Last synced: 1 day ago
JSON representation
A web application to run online queries to MySQL server. Node.js & Express. Used to demonstrate simple SQL query execution and caching of reading results on a Redis cluster. Also to learn the vulnerabilities involved.
- Host: GitHub
- URL: https://github.com/codersguild/websql-application
- Owner: codersguild
- License: gpl-3.0
- Created: 2018-08-20T14:44:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T03:54:55.000Z (over 4 years ago)
- Last Synced: 2025-05-18T20:38:03.821Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://sqlquerydemo.herokuapp.com
- Size: 10.9 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebSQL-Application
[](https://travis-ci.org/SpawnTree/WebSQL-Application)
A demo web application to run online queries to SQL server. It is not secured for the sake of simplicity. This demo must only be used for educational/demonstration purposes only. Dont store sensitive data. The queries are not santized in this demo tutorial. Please fork repository and run it.
Node.js required. MySQL/MSSQL like application should be running. This loads the result via secured connection on ```XMLHttpRequest```. Data used frequently is cached in to cookies in encrypted form ```depends on user preference```. Loading and Rendering is handled by ```express``` along with ```proper xhr request```. An active internet connection is required for loading data over ```cdn networks```. Just ```download as zip``` or ```git pull``` repository. An ```SSL/TLS``` layer is used for ```HTTPS``` connection in the web application. Trust the ```SSL certificate``` in your browser settings. It is possible to add ```redis``` caching so that connection query requests to ```MySQL``` instance is reduced, but I have not implemented it yet. Please wait for next release.
### Commands.
```bash
$ sudo npm install
$ set DEBUG=webserver:*,express* && npm start
```
Open ```https://localhost:3000/```.### Installs
Node.js
[Node.js Install](https://nodejs.org/en/download/)MySQL
[MySQL Install](https://dev.mysql.com/downloads/)MySQL Windows
[MySQL Windows](https://dev.mysql.com/downloads/windows/)To use Redis, REDIS
[Redis Install](https://redis.io/download)