Skip to content

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.

License

codersguild/WebSQL-Application

Repository files navigation

WebSQL-Application

Build Status

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.

$ sudo npm install
$ set DEBUG=webserver:*,express* && npm start

Open https://localhost:3000/.

Installs

Node.js Node.js Install

MySQL MySQL Install

MySQL Windows MySQL Windows

To use Redis, REDIS Redis Install

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published