GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - flo-kn/hourtracker: Web Application to track your hours worked per customer

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
app
app
 
 
components
components
 
 
docker/kong
docker/kong
 
 
docs/decisions
docs/decisions
 
 
hooks
hooks
 
 
lib
lib
 
 
public
public
 
 
scripts
scripts
 
 
styles
styles
 
 
.cursorrules
.cursorrules
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DOCKER_README.md
DOCKER_README.md
 
 
Dockerfile
Dockerfile
 
 
Dockerfile.backup
Dockerfile.backup
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
components.json
components.json
 
 
dashboard.png
dashboard.png
 
 
docker-compose.yml
docker-compose.yml
 
 
eslint.config.mjs
eslint.config.mjs
 
 
hour-tracker-browser-timesheet-view.png
hour-tracker-browser-timesheet-view.png
 
 
hour-tracker-dashboard.png
hour-tracker-dashboard.png
 
 
next.config.mjs
next.config.mjs
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
postcss.config.mjs
postcss.config.mjs
 
 
proxy.ts
proxy.ts
 
 
seed-user.sh
seed-user.sh
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

Hour Tracker

A self-hosted time tracking web application for freelancers to manage customers, timesheets, and log hours. Export timesheets as PDF for invoicing.

This is a personal project without formal security audits. It is designed for local or trusted-network use. See the Security section before exposing it to the internet.

Features

  • Customer management (create, edit, delete)
  • Monthly timesheets per customer
  • Time entry logging with descriptions
  • PDF export for invoicing
  • Dark mode support
  • Fully self-hosted with Docker

Tech Stack

  • Frontend: Next.js (App Router), React, TypeScript, Tailwind CSS, shadcn/ui
  • Backend: Supabase (PostgreSQL, PostgREST, GoTrue Auth)
  • Infrastructure: Docker Compose, Kong API Gateway
  • Optional: S3 backup/restore for database durability

Quick Start

# Clone the repo
git clone https://github.com/flo-kn/hourtracker.git
cd hourtracker

# Generate unique secrets (.env + Kong config)
./scripts/generate-env.sh

# Start all services
docker-compose up -d

# Create a test user
./seed-user.sh

Skipping generate-env.sh still works — Docker Compose falls back to built-in demo defaults — but the secrets will be publicly known. Fine for a quick local test, not for anything exposed to a network.

Then open http://localhost:3001 and log in with:

  • Email: [email protected]
  • Password: testpassword123

See DOCKER_README.md for full Docker setup details, database access, backup/restore, and troubleshooting.

Development

Prerequisites

  • Docker and Docker Compose
  • Node.js 18+ and pnpm (for local dev without Docker)

Local Development (without Docker for the app)

The Next.js app can run outside Docker, but it still needs a Supabase backend. Either start the Supabase services via Docker or use a hosted Supabase project.

# Start only the Supabase services (DB, Auth, API gateway, etc.)
docker-compose up -d db kong rest auth inbucket meta

# In a separate terminal, run the Next.js app locally
pnpm install
cp .env.example .env.local
# Edit .env.local with your Supabase URL and anon key
pnpm dev

If using the local Docker services, the defaults in .env.example already point to http://localhost:8001. Replace the anon key placeholder with the key from DOCKER_README.md.

Running Tests

pnpm test

Security

Running ./scripts/generate-env.sh before first start gives you unique Postgres passwords, JWT secrets, and API keys. Internal services (Postgres, PostgREST, GoTrue, Kong admin, etc.) are bound to 127.0.0.1 so they are only reachable from the host machine, not from the wider network.

Before deploying to production, also review:

  • Enable HTTPS/TLS for all endpoints
  • Disable GOTRUE_MAILER_AUTOCONFIRM and configure real SMTP
  • Restrict CORS and configure rate limiting
  • Use a production-grade PostgreSQL instance

See DOCKER_README.md for production deployment guidance.

TODOs

  • Quick Launch Feature as replacement for terminal docker compose up
  • Language Support for Timesheet Exports (Some customers want timesheets in their native languag)
  • Add autosave feature

About

Web Application to track your hours worked per customer

Topics

hour-tracking

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.