commit c1390368462ffc5885743fc517926117e32668c7 Author: Sambo Chea Date: Tue Feb 4 08:54:03 2020 +0700 add main app diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25c8fdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +package-lock.json \ No newline at end of file diff --git a/main.js b/main.js new file mode 100644 index 0000000..3835b31 --- /dev/null +++ b/main.js @@ -0,0 +1,18 @@ +const electron = require("electron"); +const { app, BrowserWindow } = electron; + +let mainWindow; + +app.on("ready", () => { + mainWindow = new BrowserWindow({ + width: 1000, + height: 700 + }); + + mainWindow.setTitle("CUBETIQ Clinic"); + mainWindow.loadURL("http://clinic.cubetiq.online"); + + mainWindow.on("closed", () => { + mainWindow = null; + }); +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..427b6f5 --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "clinic", + "version": "1.0.0", + "description": "Clinic Application", + "main": "main.js", + "dependencies": { + "electron": "^8.0.0" + }, + "devDependencies": {}, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/CUBETIQ/sandbox-clinic.git" + }, + "keywords": [ + "clinic" + ], + "author": "Sambo Chea", + "license": "ISC", + "bugs": { + "url": "https://github.com/CUBETIQ/sandbox-clinic/issues" + }, + "homepage": "https://github.com/CUBETIQ/sandbox-clinic#readme" +}