https://github.com/cr4yfish/work-tracker-next
https://github.com/cr4yfish/work-tracker-next
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cr4yfish/work-tracker-next
- Owner: cr4yfish
- Created: 2022-06-08T23:51:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-10T23:37:39.000Z (about 3 years ago)
- Last Synced: 2025-06-14T01:39:35.132Z (4 months ago)
- Language: JavaScript
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Work Tracker
Tracks your work time and stores it in a database. Perfect to use with a raspberry to selfhost a local server.
Report Bug
·
Request Feature
Table of Contents
## About The Project
So I got a job which does not track my worktime automatically, but I need to keep track of it in order to not work for free.
I came up with the idea of basically taking my foodTracker and using it's base to build another application which
can track time I spent working and store it in a database. It then can automatically choose the entries from the current workweek and
add the time values up to a week overview which then tells me how much I have worked so far and how much worktime I have left.All in a single-page webapp dashboard, so you never have to switch pages.
### Built With
* [node.js](https://nodejs.org/en/)
* [nedb](https://www.npmjs.com/package/@seald-io/nedb)
* [ejs](https://ejs.co/)### Prerequisites
* node
```
sudo apt-get node
```* npm
```sh
npm install npm@latest -g
```For the update client to work
* pm2
```
npm install pm2
```### Installation
1. Install NodeJS
2. Clone the repo
```sh
git clone https://github.com/cr4yfish/work-tracker-next.git
```
3. Perform first-time setup
```sh
cd work-tracker-next
```
```sh
yarn
```
or
```sh
npm i
```
Wait for the script to finish (The script just makes the 'update.sh' file an executable and adds the server to pm2).4. Build
```sh
npm run build
```
5. Start
```sh
npm run start
```You can then use pm2 or systemd - or whatever you prefer. For a PM2 Setup, continue reading.
(Optional)
6. Pm2 setup
```sh
pm2 start npm --name work-tracker-next -- start
```
## Usage1. Open
```sh
http://{your IP address or the one from the server}:3000
```