{"id":22206693,"url":"https://github.com/michaelcade/tism-tracker","last_synced_at":"2025-07-21T23:36:10.438Z","repository":{"id":264967985,"uuid":"865229665","full_name":"MichaelCade/tism-tracker","owner":"MichaelCade","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-01T14:47:17.000Z","size":166,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T12:00:43.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MichaelCade.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-30T07:42:07.000Z","updated_at":"2025-06-01T14:00:14.000Z","dependencies_parsed_at":"2024-11-27T02:16:48.417Z","dependency_job_id":null,"html_url":"https://github.com/MichaelCade/tism-tracker","commit_stats":null,"previous_names":["michaelcade/tism-tracker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MichaelCade/tism-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Ftism-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Ftism-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Ftism-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Ftism-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichaelCade","download_url":"https://codeload.github.com/MichaelCade/tism-tracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCade%2Ftism-tracker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266403302,"owners_count":23923406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T18:16:47.520Z","updated_at":"2025-07-21T23:36:10.415Z","avatar_url":"https://github.com/MichaelCade.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TISM Tracker\n\nTISM Tracker is a web application for tracking walking and running activities. The application allows users to log their distances and view their progress towards a goal.\n\n## Table of Contents\n\n- Features\n- Project Structure\n- Setup and Installation\n- Running the Application\n- Using Docker\n- Environment Variables\n- Database Setup\n- Contributing\n- License\n\n## Features\n\n- Log walking and running distances\n- View progress towards a goal\n- Supports both in-memory and external database storage\n\n## Project Structure\n\n.\n├── Dockerfile\n├── go.mod\n├── go.sum\n├── main.go\n├── static/\n│   └── style.css\n├── templates/\n│   ├── index.html\n│   └── progress.html\n└── README.md\n\n## Setup and Installation\n\n### Prerequisites\n\n- Go 1.18 or later\n- Docker (optional, for containerized deployment)\n- PostgreSQL (for external database storage)\n\n### Installation\n\n1. Clone the repository:\n\n   git clone https://github.com/yourusername/tism-tracker.git\n   cd tism-tracker\n\n2. Install dependencies:\n\n   go mod download\n\n## Running the Application\n\n### In-Memory Version\n\nTo run the in-memory version of the application:\n\n1. Comment out the database-related code in main.go.\n2. Run the application:\n\n   go run main.go\n\n### External Database Version\n\nTo run the version of the application that uses an external PostgreSQL database:\n\n1. Set up the PostgreSQL database (see Database Setup).\n2. Ensure the DATABASE_URL environment variable is set.\n3. Run the application:\n\n   go run main.go\n\n## Using Docker\n\n### Building the Docker Image\n\nTo build the Docker image:\n\n   docker build -t tism-tracker .\n\n### Running the Docker Container\n\nTo run the Docker container:\n\n   docker run -d -p 8080:8080 --name tism-tracker -e DATABASE_URL=\"postgres://username:password@host:port/dbname?sslmode=disable\" tism-tracker\n\n### Multi-Platform Build and Push\n\nTo build and push the Docker image for multiple platforms:\n\n   docker buildx build --platform linux/amd64,linux/arm64 -t yourusername/tism-tracker:latest --push .\n\n## Environment Variables\n\n- DATABASE_URL: The connection string for the PostgreSQL database.\n\nExample:\n\n   export DATABASE_URL=\"postgres://username:password@host:port/dbname?sslmode=disable\"\n\n## Database Setup\n\n1. Install PostgreSQL.\n2. Create a new database and user.\n3. Update the DATABASE_URL environment variable with the connection string.\n\nExample:\n\n   psql -U postgres\n   CREATE DATABASE tism_tracker;\n   CREATE USER tism_user WITH ENCRYPTED PASSWORD 'yourpassword';\n   GRANT ALL PRIVILEGES ON DATABASE tism_tracker TO tism_user;\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcade%2Ftism-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelcade%2Ftism-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcade%2Ftism-tracker/lists"}