An API for tracking time spent working on tasks in a project.
- Go 1.16+
- Docker (for containerization)
- PostgreSQL
-
Clone the repository:
git clone https://github.com/itsLeonB/time-tracker.git cd time-tracker
-
Install dependencies:
go mod download
-
Set up environment variables:
cp .env.example .env
-
Run database migrations in
./db/migrations/up.sql
To start the application, run:
go run cmd/app/main.go
The application will be available at http://localhost:8000
Or simply run with docker:
docker compose up
The documentation can be viewed here.