{"id":26282944,"url":"https://github.com/elderfieldzeus/gainz-api","last_synced_at":"2026-04-13T17:05:14.312Z","repository":{"id":282057401,"uuid":"943809578","full_name":"elderfieldzeus/gainz-api","owner":"elderfieldzeus","description":"Gainz Workout Tracker API. Built with Java Spring Boot \u0026 Supabase","archived":false,"fork":false,"pushed_at":"2025-03-12T15:30:19.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T15:37:31.663Z","etag":null,"topics":["jwt","spring-boot","supabase"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elderfieldzeus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-03-06T09:53:54.000Z","updated_at":"2025-03-12T15:30:22.000Z","dependencies_parsed_at":"2025-03-12T15:48:10.435Z","dependency_job_id":null,"html_url":"https://github.com/elderfieldzeus/gainz-api","commit_stats":null,"previous_names":["elderfieldzeus/gainz-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elderfieldzeus%2Fgainz-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elderfieldzeus%2Fgainz-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elderfieldzeus%2Fgainz-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elderfieldzeus%2Fgainz-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elderfieldzeus","download_url":"https://codeload.github.com/elderfieldzeus/gainz-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243615631,"owners_count":20319733,"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","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":["jwt","spring-boot","supabase"],"created_at":"2025-03-14T17:16:04.762Z","updated_at":"2025-12-29T17:29:50.088Z","avatar_url":"https://github.com/elderfieldzeus.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gainz API\n\n**Gainz API** is a secure, extensible **Workout Tracker REST API** built using **Java 21** and **Spring Boot 3**. It enables users to register, log in, and manage their workout sessions, with JWT authentication.\n\n---\n\n## 🛠️ Tech Stack\n\n- **Java 21**\n- **Spring Boot 3.4.3**\n- **Spring Security** with **JWT Authentication**\n- **Spring Data JPA (Hibernate)**\n- **Maven**\n- **Lombok**\n- **Dotenv** for environment variable management\n- **OpenAPI/Swagger UI**\n- **Databases**:\n  - MySQL (Prod)\n\n---\n\n## 📁 Project Structure\n\nThis project follows a clean modular architecture inspired by [this article](https://malshani-wijekoon.medium.com/spring-boot-folder-structure-best-practices-18ef78a81819):\n\n```\nsrc\n├── config          # Security, filters, CORS, JWT config\n├── controller      # API endpoints\n├── dto             # Data Transfer Objects\n├── model           # JPA Entities\n├── repository      # Data access layer (Spring Data JPA)\n├── service         # Business logic\n```\n\n---\n\n\n## ⚙️ Configuration\n\nConfigure environment variables using `.env` and the `spring-dotenv` dependency:\n\n```env\nJWT_SECRET=\n\nMYSQL_URL=\nMYSQL_USERNAME=\nMYSQL_PASSWORD=\n```\n\nYour `application.properties` should load from these variables.\n\n---\n\n## ▶️ Run Locally\n\n```bash\n./mvnw spring-boot:run\n```\n\nOr with a custom profile:\n\n```bash\n./mvnw spring-boot:run -Dspring.profiles.active=dev\n```\n\n---\n\n\n## 🚀 Roadmap\n\n- [x] JWT Authentication  \n- [x] User registration/login  \n- [x] Workout CRUD  \n- [x] PostgreSQL, MariaDB, and MySQL support  \n- [x] Swagger UI integration  \n- [x] CI/CD (GitHub Actions)  \n- [ ] Dockerize app  \n- [ ] Role-based permissions (admin/user)  \n- [ ] Global error handler  \n\n---\n\n## 📄 License\n\nMIT License — free to use and modify for personal or commercial use.\n\n---\n\n## 🤝 Contributing\n\n⚠️ This project is no longer maintained.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felderfieldzeus%2Fgainz-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felderfieldzeus%2Fgainz-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felderfieldzeus%2Fgainz-api/lists"}