add main app

This commit is contained in:
Sambo Chea 2020-02-04 08:54:03 +07:00
commit c139036846
3 changed files with 46 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules
package-lock.json

18
main.js Normal file
View File

@ -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;
});
});

26
package.json Normal file
View File

@ -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"
}