Skip to content

not-a-ethan/time-tracker-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b3768c7 · · Mar 28, 2026

History

76 Commits
Jun 24, 2025
Dec 8, 2025
Dec 1, 2025
Dec 5, 2025
Jun 24, 2025
Nov 30, 2025
Dec 1, 2025
Dec 6, 2025
Dec 8, 2025
Dec 8, 2025
Nov 29, 2025
Nov 29, 2025
Nov 29, 2025
Mar 28, 2026
Jan 28, 2026
Dec 1, 2025
Dec 1, 2025
Nov 30, 2025

Repository files navigation

Time Tracker V2

A FOSS time tracker. This can be used to track how much time is spent on different activities.

Remaking this project so it has more features + a more polished UX/UI

V1: https://github.com/not-a-ethan/time-tracker

The new features this week is everything exept the dashboard.


You can view a video demo.

Dev

Database

This project uses a PostgreSQL databse. Below is the quries to create all the tables.

User table

CREATE TABLE "users" (
   "id" integer PRIMARY KEY,
   "name" text UNIQUE NOT NULL
);;

Project table

CREATE TABLE "projects" (
   "id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "projects_id_seq"),
   "name" text NOT NULL,
   "description" text,
   "color" text NOT NULL,
   "owner" integer NOT NULL,
   "collaborators" text NOT NULL
);;

collaborators column should be a comma seperated list of user IDs.

Time Entry table

CREATE TABLE "timeentries" (
   "id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "timeentries_id_seq"),
   "projectid" integer NOT NULL,
   "name" text NOT NULL,
   "starttime" integer NOT NULL,
   "endtime" integer,
   "owner" integer NOT NULL
);;

Envirment varibles

GITHUB_ID=id>

GITHUB_SECRET=et>


NEXTAUTH_URL=l)>

AUTH_SECRET=#nextauth_secret>gt;


PGHost=st>

PGPORT=5432

PGDATABASE=se>

PGUSER=er>

PGPASSWORD=rd>