# Time Tracker Pro - Offline Installation
## Prerequisites
- Node.js (v16 or later)
- npm (comes with Node.js)
## Installation Steps
1. **Download the application files** including:
- `index.html` (main application file)
- `package.json` (configuration file)
- `main.js` (Electron main process file)
- `/build` folder with application icon (optional)
2. **Install dependencies**:
```bash
npm install
```
3. **Run the application in development mode**:
```bash
npm start
```
4. **Create installer packages**:
For Windows:
```bash
npm run dist
```
This will create:
- Setup executable in `dist` folder
- Portable version in `dist/win-unpacked`
## Building for Other Platforms
To build for other platforms, add the appropriate build configuration to `package.json` and run:
```bash
npm run dist
```
## Offline Usage
Once installed, the application works completely offline:
- All data is stored in local storage
- No internet connection required
- Reports can be printed or saved as PDF
const { app, BrowserWindow } = require('electron')
const path = require('path')
function createWindow () {
const win = new BrowserWindow({
width: 1200,
height: 800,
webPreferences: {
nodeIntegration: true,
contextIsolation: false
}
})
win.loadFile('index.html')
}
app.whenReady().then(() => {
createWindow()
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow()
}
})
})
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})
{
"name": "time-tracker-pro",
"version": "1.0.0",
"description": "Offline Time Tracking Application",
"main": "main.js",
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"postinstall": "electron-builder install-app-deps"
},
"build": {
"appId": "com.example.timetrackerpro",
"productName": "Time Tracker Pro",
"win": {
"target": "nsis",
"icon": "build/icon.ico"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true
}
},
"devDependencies": {
"electron": "^25.0.0",
"electron-builder": "^24.0.0"
}
}
Time Tracker Pro
Time Records
Date |
Clock In |
Lunch Out |
Lunch In |
Clock Out |
Total |
Overtime |
No records found |
Reports
Select report type and click Generate
Made with
DeepSite - 🧬 Remix