Free, open source, Wakatime-compatible coding time tracker
Find a file
Mahad Kalam 42ceec73cb
Upgrade Inertia + new settings page (#950)
* New settings?

* New Settings page!

* Vendor Inertia

* Fix some issues

* <Link>ify the site!
2026-02-15 17:32:26 +00:00
.github Regional leaderboards (#943) 2026-02-15 08:29:00 +00:00
.kamal Initial commit 2025-02-16 03:21:30 -05:00
app Upgrade Inertia + new settings page (#950) 2026-02-15 17:32:26 +00:00
bin Inertia migration/UI3 (#911) 2026-02-09 11:26:30 +00:00
config Upgrade Inertia + new settings page (#950) 2026-02-15 17:32:26 +00:00
db Remove unused public_activity + downsize activity graph Inertia payload (#946) 2026-02-15 09:54:29 +00:00
docs Remove bad docs (#932) 2026-02-12 11:15:12 +00:00
lib New flavours? (#925) 2026-02-11 19:10:29 +00:00
log Initial commit 2025-02-16 03:21:30 -05:00
public Add instructions for JetBrains and Sublime Text and fix screenshots (#935) 2026-02-15 01:32:03 +00:00
script Initial commit 2025-02-16 03:21:30 -05:00
spec Unify OAuth2 and unauthenticated projects routes (#948) 2026-02-15 13:59:44 +00:00
storage Initial commit 2025-02-16 03:21:30 -05:00
swagger/v1 Unify OAuth2 and unauthenticated projects routes (#948) 2026-02-15 13:59:44 +00:00
test Unify OAuth2 and unauthenticated projects routes (#948) 2026-02-15 13:59:44 +00:00
tmp Initial commit 2025-02-16 03:21:30 -05:00
vendor Upgrade Inertia + new settings page (#950) 2026-02-15 17:32:26 +00:00
.dockerignore Initial commit 2025-02-16 03:21:30 -05:00
.env.example Add PostHog (#906) 2026-02-15 08:44:39 +00:00
.erb_lint.yml fix application/ld+json (#832) 2026-01-25 13:11:22 -05:00
.gitattributes Add heartbeat download (#457) 2025-08-07 15:36:36 -04:00
.gitignore Remove bad docs (#932) 2026-02-12 11:15:12 +00:00
.rspec feat: added actual api docs (rswag) + ci enforcement (#846) 2026-01-27 01:05:49 -05:00
.rubocop.yml Initial commit 2025-02-16 03:21:30 -05:00
.ruby-version update ruby to 3.4.8 (#805) 2026-01-19 02:24:20 -05:00
AGENTS.md feat: added actual api docs (rswag) + ci enforcement (#846) 2026-01-27 01:05:49 -05:00
bun.lock Upgrade Inertia + new settings page (#950) 2026-02-15 17:32:26 +00:00
config.ru Load autotuner in config.ru 2025-06-08 19:31:09 -04:00
docker-compose.yml Remove unused public_activity + downsize activity graph Inertia payload (#946) 2026-02-15 09:54:29 +00:00
Dockerfile Fix builds, fr this time. 2026-02-09 20:31:10 +00:00
Dockerfile.dev Remove unused public_activity + downsize activity graph Inertia payload (#946) 2026-02-15 09:54:29 +00:00
Dockerfile.production-worker Fix 10-minute asset delay 2026-02-15 10:33:05 +00:00
docs-index.png Inertia migration/UI3 (#911) 2026-02-09 11:26:30 +00:00
docs-vs-code.png Inertia migration/UI3 (#911) 2026-02-09 11:26:30 +00:00
entrypoint.dev.sh Fix notification job missing class name 2025-02-22 01:58:46 -05:00
Gemfile Remove unused public_activity + downsize activity graph Inertia payload (#946) 2026-02-15 09:54:29 +00:00
Gemfile.lock Remove unused public_activity + downsize activity graph Inertia payload (#946) 2026-02-15 09:54:29 +00:00
package-lock.json Upgrade Inertia + new settings page (#950) 2026-02-15 17:32:26 +00:00
package.json Upgrade Inertia + new settings page (#950) 2026-02-15 17:32:26 +00:00
Procfile.dev AGH 2026-02-10 02:00:12 +00:00
Rakefile Initial commit 2025-02-16 03:21:30 -05:00
README.md feat: added actual api docs (rswag) + ci enforcement (#846) 2026-01-27 01:05:49 -05:00
slack_manifest_harbor.yml Rename slack bot 2025-03-13 11:25:53 -04:00
slack_manifest_sailors_log.yml Add slack channel name to sailors log prefs 2025-03-11 22:05:10 -04:00
svelte.config.js Inertia migration/UI3 (#911) 2026-02-09 11:26:30 +00:00
tsconfig.json Re-add test param (#921) 2026-02-10 23:14:49 +00:00
tsconfig.node.json Inertia migration/UI3 (#911) 2026-02-09 11:26:30 +00:00
vite.config.ts Inertia migration/UI3 (#911) 2026-02-09 11:26:30 +00:00

Hackatime

Ping Status Work time

Local development

# Set it up...
$ git clone https://github.com/hackclub/hackatime && cd hackatime

# Set your config
$ cp .env.example .env

Edit your .env file to include the following:

# Database configurations - these work with the Docker setup
DATABASE_URL=postgres://postgres:secureorpheus123@db:5432/app_development
WAKATIME_DATABASE_URL=postgres://postgres:secureorpheus123@db:5432/app_development
SAILORS_LOG_DATABASE_URL=postgres://postgres:secureorpheus123@db:5432/app_development

# Generate these with `rails secret` or use these for development
SECRET_KEY_BASE=alallalalallalalallalalalladlalllalal
ENCRYPTION_PRIMARY_KEY=32characterrandomstring12345678901
ENCRYPTION_DETERMINISTIC_KEY=32characterrandomstring12345678902
ENCRYPTION_KEY_DERIVATION_SALT=16charssalt1234

Comment out the LOOPS_API_KEY for the local letter opener, otherwise the app will try to send out a email and fail.

Build & Run the project

$ docker compose run --service-ports web /bin/bash

# Now, setup the database using:
app# bin/rails db:create db:schema:load db:seed

# Now start up the app:
app# bin/dev
# This hosts the server on your computer w/ default port 3000

# Want to do other things?
app# bin/rails c # start an interactive irb!
app# bin/rails db:migrate # migrate the database
app# bin/rails rswag:specs:swaggerize # generate API documentation

You can now access the app at http://localhost:3000/

Use email authentication from the homepage with test@example.com or create a new user (you can view outgoing emails at http://localhost:3000/letter_opener)!

Ever need to setup a new database?

# inside the docker container, reset the db
app# $ bin/rails db:drop db:create db:migrate db:seed