From c1390368462ffc5885743fc517926117e32668c7 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Tue, 4 Feb 2020 08:54:03 +0700 Subject: [PATCH] add main app --- .gitignore | 2 ++ main.js | 18 ++++++++++++++++++ package.json | 26 ++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 .gitignore create mode 100644 main.js create mode 100644 package.json 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" +}