A modern, elegant dashboard for tracking work hours, visualizing progress, and calculating earnings. Built with SvelteKit and Tailwind CSS.
/Work-Time-Backend)Clone the repository
git clone <repository-url>
cd Work-Report-Svelte
Install Frontend Dependencies
pnpm install
Setup the Backend Navigate to the backend directory and install dependencies:
cd Work-Time-Backend
npm install
Work-Time-Backend/schema.sql.Work-Time-Backend/server.js or separate config file (if applicable).api_documentation.md, the backend looks for logs at C:/Program Files (x86)/StaffCounter/logs/USER/. Ensure this path matches your environment or update worktime.py/workTimeScraper.js.http://192.168.0.2:88 by default (see src/lib/config.ts or api_documentation.md). Update this if running locally or on a different port.Start the Backend:
cd Work-Time-Backend
node server.js
# OR use nodemon
npx nodemon server.js
Start the Frontend:
# In the root directory
pnpm dev
Open your browser at http://localhost:5173.
Work-Report-Svelte/
āāā src/
ā āāā lib/
ā ā āāā components/ # UI Components (Header, Charts, etc.)
ā ā āāā stores/ # Svelte stores for state management
ā ā āāā utils/ # Helper functions
ā ā āāā types.ts # TypeScript interfaces
ā āāā routes/ # SvelteKit File-based routing
āāā Work-Time-Backend/ # Node.js API & Scraper
ā āāā database/ # SQL schema
ā āāā scripts/ # Scraping logic
ā āāā server.js # Express app entry point
āāā ...config files
This project is for personal use.
Built with ā¤ļø using Svelte.