ELECTRON PROJECT LOGIN & SIGNUP FORM




main.js

console.log("main process working");

console.log('main.js');


const electron =  require("electron");

const app = electron.app;

const BrowserWindow = electron.BrowserWindow;

const path = require("path");

const url = require("url");


let win;


function createWindow(){

    win = new BrowserWindow({

        webPreferences:{

            nodeIntegration:true,

            contextIsolation:false,

        }

    });


    win.loadURL(url.format({

        pathname: path.join(__dirname, 'index.html'),

        protocol: 'file',

        slashes: true

    }));


    

    win.webContents.openDevTools();


    win.on('closed', ()=>{

        win = null;

    })

}


app.on('ready', createWindow);


app.on('window-all-closed', () =>{

    if(process.platform !== 'darwin'){

        app.quit()

    }

});


app.on('activate', ()=> {

    if(win === null){

        createWindow()

    }

});



Package.json

{

    "name": "first_app",

    "version": "1.0.0",

    "main": "main.js",

    "devDependencies": {

        "electron": "^12.0.5"

    },

    "scripts": {

        "start": "electron ."

    },

    "dependencies": {

        "datatables.net-dt": "^1.10.24",

        "jquery": "^3.6.0",

        "mysql": "^2.18.1"

    }

}



Package-lock.json

{

    "name": "first_app",

    "version": "1.0.0",

    "lockfileVersion": 1,

    "requires": true,

    "dependencies": {

        "@electron/get": {

            "version": "1.12.4",

            "resolved": "https://registry.npmjs.org/@electron/get/-/get-1.12.4.tgz",

            "integrity": "sha512-6nr9DbJPUR9Xujw6zD3y+rS95TyItEVM0NVjt1EehY2vUWfIgPiIPVHxCvaTS0xr2B+DRxovYVKbuOWqC35kjg==",

            "dev": true,

            "requires": {

                "debug": "^4.1.1",

                "env-paths": "^2.2.0",

                "fs-extra": "^8.1.0",

                "global-agent": "^2.0.2",

                "global-tunnel-ng": "^2.7.1",

                "got": "^9.6.0",

                "progress": "^2.0.3",

                "semver": "^6.2.0",

                "sumchecker": "^3.0.1"

            }

        },

        "@sindresorhus/is": {

            "version": "0.14.0",

            "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz",

            "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==",

            "dev": true

        },

        "@szmarczak/http-timer": {

            "version": "1.1.2",

            "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz",

            "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==",

            "dev": true,

            "requires": {

                "defer-to-connect": "^1.0.1"

            }

        },

        "@types/node": {

            "version": "14.14.42",

            "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.42.tgz",

            "integrity": "sha512-88QoObqn9WYIUMRzOx92GmSHmU3JCyukC2ulEv8tFjUG9VeV2FQ/cA7VQ1gi+rB/+gBMVvzVFcTnz8RdMDVIWw==",

            "dev": true

        },

        "bignumber.js": {

            "version": "9.0.0",

            "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz",

            "integrity": "sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A=="

        },

        "boolean": {

            "version": "3.0.3",

            "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.0.3.tgz",

            "integrity": "sha512-EqrTKXQX6Z3A2nRmMEIlAIfjQOgFnVO2nqZGpbcsPnYGWBwpFqzlrozU1dy+S2iqfYDLh26ef4KrgTxu9xQrxA==",

            "dev": true,

            "optional": true

        },

        "buffer-crc32": {

            "version": "0.2.13",

            "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",

            "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=",

            "dev": true

        },

        "buffer-from": {

            "version": "1.1.1",

            "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",

            "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",

            "dev": true

        },

        "cacheable-request": {

            "version": "6.1.0",

            "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz",

            "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==",

            "dev": true,

            "requires": {

                "clone-response": "^1.0.2",

                "get-stream": "^5.1.0",

                "http-cache-semantics": "^4.0.0",

                "keyv": "^3.0.0",

                "lowercase-keys": "^2.0.0",

                "normalize-url": "^4.1.0",

                "responselike": "^1.0.2"

            },

            "dependencies": {

                "get-stream": {

                    "version": "5.2.0",

                    "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",

                    "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",

                    "dev": true,

                    "requires": {

                        "pump": "^3.0.0"

                    }

                },

                "lowercase-keys": {

                    "version": "2.0.0",

                    "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",

                    "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",

                    "dev": true

                }

            }

        },

        "clone-response": {

            "version": "1.0.2",

            "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",

            "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=",

            "dev": true,

            "requires": {

                "mimic-response": "^1.0.0"

            }

        },

        "concat-stream": {

            "version": "1.6.2",

            "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",

            "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",

            "dev": true,

            "requires": {

                "buffer-from": "^1.0.0",

                "inherits": "^2.0.3",

                "readable-stream": "^2.2.2",

                "typedarray": "^0.0.6"

            }

        },

        "config-chain": {

            "version": "1.1.12",

            "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz",

            "integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==",

            "dev": true,

            "optional": true,

            "requires": {

                "ini": "^1.3.4",

                "proto-list": "~1.2.1"

            }

        },

        "core-js": {

            "version": "3.11.0",

            "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.11.0.tgz",

            "integrity": "sha512-bd79DPpx+1Ilh9+30aT5O1sgpQd4Ttg8oqkqi51ZzhedMM1omD2e6IOF48Z/DzDCZ2svp49tN/3vneTK6ZBkXw==",

            "dev": true,

            "optional": true

        },

        "core-util-is": {

            "version": "1.0.2",

            "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",

            "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="

        },

        "datatables.net": {

            "version": "1.10.24",

            "resolved": "https://registry.npmjs.org/datatables.net/-/datatables.net-1.10.24.tgz",

            "integrity": "sha512-CwXixvOdinvBCLXvcTloDinWiEM7Geaz+GwyjPrZL+MXIGPcLv4Op1bbWn8ErsI1JWMIWC8Cuf1rnDU2RrFV5w==",

            "requires": {

                "jquery": ">=1.7"

            }

        },

        "datatables.net-dt": {

            "version": "1.10.24",

            "resolved": "https://registry.npmjs.org/datatables.net-dt/-/datatables.net-dt-1.10.24.tgz",

            "integrity": "sha512-O7c/Fhqz9hZG8LkXLr9k3M2rZPFjqY6tylOnFl3UaTZfBp5TeCc1AXZbFmv3Y7aNkcNS2UVJRiYAk7bkQhxR+w==",

            "requires": {

                "datatables.net": "1.10.24",

                "jquery": ">=1.7"

            }

        },

        "debug": {

            "version": "4.3.1",

            "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",

            "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",

            "dev": true,

            "requires": {

                "ms": "2.1.2"

            }

        },

        "decompress-response": {

            "version": "3.3.0",

            "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz",

            "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=",

            "dev": true,

            "requires": {

                "mimic-response": "^1.0.0"

            }

        },

        "defer-to-connect": {

            "version": "1.1.3",

            "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz",

            "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==",

            "dev": true

        },

        "define-properties": {

            "version": "1.1.3",

            "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",

            "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",

            "dev": true,

            "optional": true,

            "requires": {

                "object-keys": "^1.0.12"

            }

        },

        "detect-node": {

            "version": "2.0.5",

            "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.5.tgz",

            "integrity": "sha512-qi86tE6hRcFHy8jI1m2VG+LaPUR1LhqDa5G8tVjuUXmOrpuAgqsA1pN0+ldgr3aKUH+QLI9hCY/OcRYisERejw==",

            "dev": true,

            "optional": true

        },

        "duplexer3": {

            "version": "0.1.4",

            "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",

            "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=",

            "dev": true

        },

        "electron": {

            "version": "12.0.5",

            "resolved": "https://registry.npmjs.org/electron/-/electron-12.0.5.tgz",

            "integrity": "sha512-z0xYB3sPr0qZcDrHUUWqooPKe3yUzBDxQcgQe3f2TLstA84JIFXBoaIJCPh/fJW0+JdF/ZFVeK2SNgLhYtRV+Q==",

            "dev": true,

            "requires": {

                "@electron/get": "^1.0.1",

                "@types/node": "^14.6.2",

                "extract-zip": "^1.0.3"

            }

        },

        "encodeurl": {

            "version": "1.0.2",

            "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",

            "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=",

            "dev": true,

            "optional": true

        },

        "end-of-stream": {

            "version": "1.4.4",

            "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",

            "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",

            "dev": true,

            "requires": {

                "once": "^1.4.0"

            }

        },

        "env-paths": {

            "version": "2.2.1",

            "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",

            "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",

            "dev": true

        },

        "es6-error": {

            "version": "4.1.1",

            "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",

            "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",

            "dev": true,

            "optional": true

        },

        "escape-string-regexp": {

            "version": "4.0.0",

            "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",

            "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",

            "dev": true,

            "optional": true

        },

        "extract-zip": {

            "version": "1.7.0",

            "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz",

            "integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==",

            "dev": true,

            "requires": {

                "concat-stream": "^1.6.2",

                "debug": "^2.6.9",

                "mkdirp": "^0.5.4",

                "yauzl": "^2.10.0"

            },

            "dependencies": {

                "debug": {

                    "version": "2.6.9",

                    "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",

                    "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",

                    "dev": true,

                    "requires": {

                        "ms": "2.0.0"

                    }

                },

                "ms": {

                    "version": "2.0.0",

                    "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",

                    "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",

                    "dev": true

                }

            }

        },

        "fd-slicer": {

            "version": "1.1.0",

            "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",

            "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",

            "dev": true,

            "requires": {

                "pend": "~1.2.0"

            }

        },

        "fs-extra": {

            "version": "8.1.0",

            "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",

            "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",

            "dev": true,

            "requires": {

                "graceful-fs": "^4.2.0",

                "jsonfile": "^4.0.0",

                "universalify": "^0.1.0"

            }

        },

        "get-stream": {

            "version": "4.1.0",

            "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",

            "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",

            "dev": true,

            "requires": {

                "pump": "^3.0.0"

            }

        },

        "global-agent": {

            "version": "2.2.0",

            "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-2.2.0.tgz",

            "integrity": "sha512-+20KpaW6DDLqhG7JDiJpD1JvNvb8ts+TNl7BPOYcURqCrXqnN1Vf+XVOrkKJAFPqfX+oEhsdzOj1hLWkBTdNJg==",

            "dev": true,

            "optional": true,

            "requires": {

                "boolean": "^3.0.1",

                "core-js": "^3.6.5",

                "es6-error": "^4.1.1",

                "matcher": "^3.0.0",

                "roarr": "^2.15.3",

                "semver": "^7.3.2",

                "serialize-error": "^7.0.1"

            },

            "dependencies": {

                "semver": {

                    "version": "7.3.5",

                    "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",

                    "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",

                    "dev": true,

                    "optional": true,

                    "requires": {

                        "lru-cache": "^6.0.0"

                    }

                }

            }

        },

        "global-tunnel-ng": {

            "version": "2.7.1",

            "resolved": "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz",

            "integrity": "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==",

            "dev": true,

            "optional": true,

            "requires": {

                "encodeurl": "^1.0.2",

                "lodash": "^4.17.10",

                "npm-conf": "^1.1.3",

                "tunnel": "^0.0.6"

            }

        },

        "globalthis": {

            "version": "1.0.2",

            "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.2.tgz",

            "integrity": "sha512-ZQnSFO1la8P7auIOQECnm0sSuoMeaSq0EEdXMBFF2QJO4uNcwbyhSgG3MruWNbFTqCLmxVwGOl7LZ9kASvHdeQ==",

            "dev": true,

            "optional": true,

            "requires": {

                "define-properties": "^1.1.3"

            }

        },

        "got": {

            "version": "9.6.0",

            "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",

            "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==",

            "dev": true,

            "requires": {

                "@sindresorhus/is": "^0.14.0",

                "@szmarczak/http-timer": "^1.1.2",

                "cacheable-request": "^6.0.0",

                "decompress-response": "^3.3.0",

                "duplexer3": "^0.1.4",

                "get-stream": "^4.1.0",

                "lowercase-keys": "^1.0.1",

                "mimic-response": "^1.0.1",

                "p-cancelable": "^1.0.0",

                "to-readable-stream": "^1.0.0",

                "url-parse-lax": "^3.0.0"

            }

        },

        "graceful-fs": {

            "version": "4.2.6",

            "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz",

            "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==",

            "dev": true

        },

        "http-cache-semantics": {

            "version": "4.1.0",

            "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz",

            "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==",

            "dev": true

        },

        "inherits": {

            "version": "2.0.4",

            "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",

            "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="

        },

        "ini": {

            "version": "1.3.8",

            "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",

            "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",

            "dev": true,

            "optional": true

        },

        "isarray": {

            "version": "1.0.0",

            "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",

            "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="

        },

        "jquery": {

            "version": "3.6.0",

            "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",

            "integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw=="

        },

        "json-buffer": {

            "version": "3.0.0",

            "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",

            "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=",

            "dev": true

        },

        "json-stringify-safe": {

            "version": "5.0.1",

            "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",

            "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",

            "dev": true,

            "optional": true

        },

        "jsonfile": {

            "version": "4.0.0",

            "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",

            "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",

            "dev": true,

            "requires": {

                "graceful-fs": "^4.1.6"

            }

        },

        "keyv": {

            "version": "3.1.0",

            "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz",

            "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==",

            "dev": true,

            "requires": {

                "json-buffer": "3.0.0"

            }

        },

        "lodash": {

            "version": "4.17.21",

            "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",

            "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",

            "dev": true,

            "optional": true

        },

        "lowercase-keys": {

            "version": "1.0.1",

            "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz",

            "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==",

            "dev": true

        },

        "lru-cache": {

            "version": "6.0.0",

            "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",

            "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",

            "dev": true,

            "optional": true,

            "requires": {

                "yallist": "^4.0.0"

            }

        },

        "matcher": {

            "version": "3.0.0",

            "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz",

            "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==",

            "dev": true,

            "optional": true,

            "requires": {

                "escape-string-regexp": "^4.0.0"

            }

        },

        "mimic-response": {

            "version": "1.0.1",

            "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",

            "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",

            "dev": true

        },

        "minimist": {

            "version": "1.2.5",

            "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",

            "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",

            "dev": true

        },

        "mkdirp": {

            "version": "0.5.5",

            "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",

            "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",

            "dev": true,

            "requires": {

                "minimist": "^1.2.5"

            }

        },

        "ms": {

            "version": "2.1.2",

            "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",

            "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",

            "dev": true

        },

        "mysql": {

            "version": "2.18.1",

            "resolved": "https://registry.npmjs.org/mysql/-/mysql-2.18.1.tgz",

            "integrity": "sha512-Bca+gk2YWmqp2Uf6k5NFEurwY/0td0cpebAucFpY/3jhrwrVGuxU2uQFCHjU19SJfje0yQvi+rVWdq78hR5lig==",

            "requires": {

                "bignumber.js": "9.0.0",

                "readable-stream": "2.3.7",

                "safe-buffer": "5.1.2",

                "sqlstring": "2.3.1"

            }

        },

        "normalize-url": {

            "version": "4.5.0",

            "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz",

            "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==",

            "dev": true

        },

        "npm-conf": {

            "version": "1.1.3",

            "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz",

            "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==",

            "dev": true,

            "optional": true,

            "requires": {

                "config-chain": "^1.1.11",

                "pify": "^3.0.0"

            }

        },

        "object-keys": {

            "version": "1.1.1",

            "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",

            "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",

            "dev": true,

            "optional": true

        },

        "once": {

            "version": "1.4.0",

            "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",

            "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",

            "dev": true,

            "requires": {

                "wrappy": "1"

            }

        },

        "p-cancelable": {

            "version": "1.1.0",

            "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz",

            "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==",

            "dev": true

        },

        "pend": {

            "version": "1.2.0",

            "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",

            "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",

            "dev": true

        },

        "pify": {

            "version": "3.0.0",

            "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",

            "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",

            "dev": true,

            "optional": true

        },

        "prepend-http": {

            "version": "2.0.0",

            "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",

            "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=",

            "dev": true

        },

        "process-nextick-args": {

            "version": "2.0.1",

            "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",

            "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="

        },

        "progress": {

            "version": "2.0.3",

            "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",

            "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",

            "dev": true

        },

        "proto-list": {

            "version": "1.2.4",

            "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",

            "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=",

            "dev": true,

            "optional": true

        },

        "pump": {

            "version": "3.0.0",

            "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",

            "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",

            "dev": true,

            "requires": {

                "end-of-stream": "^1.1.0",

                "once": "^1.3.1"

            }

        },

        "readable-stream": {

            "version": "2.3.7",

            "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",

            "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",

            "requires": {

                "core-util-is": "~1.0.0",

                "inherits": "~2.0.3",

                "isarray": "~1.0.0",

                "process-nextick-args": "~2.0.0",

                "safe-buffer": "~5.1.1",

                "string_decoder": "~1.1.1",

                "util-deprecate": "~1.0.1"

            }

        },

        "responselike": {

            "version": "1.0.2",

            "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz",

            "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=",

            "dev": true,

            "requires": {

                "lowercase-keys": "^1.0.0"

            }

        },

        "roarr": {

            "version": "2.15.4",

            "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",

            "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==",

            "dev": true,

            "optional": true,

            "requires": {

                "boolean": "^3.0.1",

                "detect-node": "^2.0.4",

                "globalthis": "^1.0.1",

                "json-stringify-safe": "^5.0.1",

                "semver-compare": "^1.0.0",

                "sprintf-js": "^1.1.2"

            }

        },

        "safe-buffer": {

            "version": "5.1.2",

            "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",

            "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="

        },

        "semver": {

            "version": "6.3.0",

            "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",

            "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",

            "dev": true

        },

        "semver-compare": {

            "version": "1.0.0",

            "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",

            "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=",

            "dev": true,

            "optional": true

        },

        "serialize-error": {

            "version": "7.0.1",

            "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",

            "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==",

            "dev": true,

            "optional": true,

            "requires": {

                "type-fest": "^0.13.1"

            }

        },

        "sprintf-js": {

            "version": "1.1.2",

            "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",

            "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",

            "dev": true,

            "optional": true

        },

        "sqlstring": {

            "version": "2.3.1",

            "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.1.tgz",

            "integrity": "sha1-R1OT/56RR5rqYtyvDKPRSYOn+0A="

        },

        "string_decoder": {

            "version": "1.1.1",

            "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",

            "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",

            "requires": {

                "safe-buffer": "~5.1.0"

            }

        },

        "sumchecker": {

            "version": "3.0.1",

            "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",

            "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",

            "dev": true,

            "requires": {

                "debug": "^4.1.0"

            }

        },

        "to-readable-stream": {

            "version": "1.0.0",

            "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz",

            "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==",

            "dev": true

        },

        "tunnel": {

            "version": "0.0.6",

            "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",

            "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",

            "dev": true,

            "optional": true

        },

        "type-fest": {

            "version": "0.13.1",

            "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",

            "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",

            "dev": true,

            "optional": true

        },

        "typedarray": {

            "version": "0.0.6",

            "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",

            "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",

            "dev": true

        },

        "universalify": {

            "version": "0.1.2",

            "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",

            "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",

            "dev": true

        },

        "url-parse-lax": {

            "version": "3.0.0",

            "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz",

            "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=",

            "dev": true,

            "requires": {

                "prepend-http": "^2.0.0"

            }

        },

        "util-deprecate": {

            "version": "1.0.2",

            "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",

            "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="

        },

        "wrappy": {

            "version": "1.0.2",

            "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",

            "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",

            "dev": true

        },

        "yallist": {

            "version": "4.0.0",

            "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",

            "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",

            "dev": true,

            "optional": true

        },

        "yauzl": {

            "version": "2.10.0",

            "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",

            "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",

            "dev": true,

            "requires": {

                "buffer-crc32": "~0.2.3",

                "fd-slicer": "~1.1.0"

            }

        }

    }

}



Index.html

<html>

<link rel="stylesheet" href="style.css">

<body>

<div id="resultDiv"></div>

  <script>

var mysql      = require('mysql');

var connection = mysql.createConnection({

  host     : 'localhost',

  user     : 'root',

  password : null,

  database : 'electron_first'

});

 

connection.connect();


$sql = "SELECT 'id','uname' FROM  'login'";

 

connection.query($sql, function (error, results, fields) {

  if (error) throw error;

  console.log(results);

  $('#resultDiv').text(result[0].uname);

});

 

connection.end();


  </script>

<form action="action_page.php" method="post">

  <div class="imgcontainer">

    <img src="img/login.png" alt="Avatar" class="avatar">

  </div>


  <div class="container">

    <label for="uname"><b>Username</b></label>

    <input type="text" placeholder="Enter Username" name="uname" required>


    <label for="psw"><b>Password</b></label>

    <input type="password" placeholder="Enter Password" name="psw" required>


    <button type="submit">Login</button>

<label>Don't Have an Account?</label><a href="sign_up.html">Sign Here</a>

<label>billing?</label><a href="billing.html">billing</a>

  </div>


</body>

</form>


</html>


Sign_up.html

<hrml>

    <link rel="stylesheet" href="style_sign_up.css">

    <form action="action_page.php" style="border:1px solid #ccc">

        <div class="container">

          <h1>Sign Up</h1>

    

          <hr>

      

          <label for="email"><b>Email</b></label>

          <input type="text" placeholder="Enter Email" name="email" required>

      

          <label for="psw"><b>Password</b></label>

          <input type="password" placeholder="Enter Password" name="psw" required>

      

          <label for="psw-repeat"><b>Confirm Password</b></label>

          <input type="password" placeholder="Confirm Password" name="psw-repeat" required>

      

          <label>

            <input type="checkbox" checked="checked" name="remember" style="margin-bottom:15px"> Remember me

          </label>

      

        

      

          <div class="clearfix">

            <button type="button" class="cancelbtn">Cancel</button>

            <button type="submit" class="signupbtn">Sign Up</button>

          </div>

        </div>

      </form>


</hrml>


Style.css

/* Bordered form */

form {

  border: 3px solid #f1f1f1;

}


/* Full-width inputs */

input[type=text], input[type=password] {

  width: 100%;

  padding: 12px 20px;

  margin: 8px 0;

  display: inline-block;

  border: 1px solid #ccc;

  box-sizing: border-box;

}


/* Set a style for all buttons */

button {

  background-color: #04AA6D;

  color: white;

  padding: 14px 20px;

  margin: 8px 0;

  border: none;

  cursor: pointer;

  width: 100%;

}


/* Add a hover effect for buttons */

button:hover {

  opacity: 0.8;

}


/* Extra style for the cancel button (red) */

.cancelbtn {

  width: auto;

  padding: 10px 18px;

  background-color: #f44336;

}


/* Center the avatar image inside this container */

.imgcontainer {

  text-align: center;

  margin: 24px 0 12px 0;

}


/* Avatar image */

img.avatar {

  width: 40%;

  border-radius: 50%;

}


/* Add padding to containers */

.container {

  padding: 16px;

}


/* The "Forgot password" text */

span.psw {

  float: right;

  padding-top: 16px;

}


/* Change styles for span and cancel button on extra small screens */

@media screen and (max-width: 300px) {

  span.psw {

    display: block;

    float: none;

  }

  .cancelbtn {

    width: 100%;

  }

}


Style_signup.css

* {box-sizing: border-box}


/* Full-width input fields */

  input[type=text], input[type=password] {

  width: 100%;

  padding: 15px;

  margin: 5px 0 22px 0;

  display: inline-block;

  border: none;

  background: #f1f1f1;

}


input[type=text]:focus, input[type=password]:focus {

  background-color: #ddd;

  outline: none;

}


hr {

  border: 1px solid #f1f1f1;

  margin-bottom: 25px;

}


/* Set a style for all buttons */

button {

  background-color: #04AA6D;

  color: white;

  padding: 14px 20px;

  margin: 8px 0;

  border: none;

  cursor: pointer;

  width: 100%;

  opacity: 0.9;

}


button:hover {

  opacity:1;

}


/* Extra styles for the cancel button */

.cancelbtn {

  padding: 14px 20px;

  background-color: #f44336;

}


/* Float cancel and signup buttons and add an equal width */

.cancelbtn, .signupbtn {

  float: left;

  width: 50%;

}


/* Add padding to container elements */

.container {

  padding: 16px;

}


/* Clear floats */

.clearfix::after {

  content: "";

  clear: both;

  display: table;

}


/* Change styles for cancel button and signup button on extra small screens */

@media screen and (max-width: 300px) {

  .cancelbtn, .signupbtn {

    width: 100%;

  }

}


YouTube Link: https://youtu.be/5reiaZxoyBU


Comments

Popular posts from this blog

SALARY CALCULATOR WINDOWS APPLICATION USING NETBEANS

STUDENT REGISTRATION WEB APPLICATION USING JAVA(NETBEANS) + MYSQL(PHPMYADMIN) - PART 01