{"id":15285284,"url":"https://github.com/coslynx/fitness-tracker-app","last_synced_at":"2026-04-10T04:44:40.020Z","repository":{"id":257121813,"uuid":"857382658","full_name":"coslynx/fitness-tracker-app","owner":"coslynx","description":"Set fitness goals, track progress, and share achievements with friends... Created at https://coslynx.com","archived":false,"fork":false,"pushed_at":"2024-09-14T14:12:52.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T00:49:45.407Z","etag":null,"topics":["code-generation","community-engagement","developer-tools","devops","fitness-tracker","goal-setting","javascript","machine-learning","mvp","nextjs","postgresql","progress-visualization","react","serverless","social-fitness","software-development","supabase","tailwindcss","workout-tracking"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/coslynx.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-14T14:07:36.000Z","updated_at":"2024-09-14T14:12:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3b44047-e92c-410d-91df-00a9b9686f48","html_url":"https://github.com/coslynx/fitness-tracker-app","commit_stats":null,"previous_names":["coslynx/fitness-tracker-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2Ffitness-tracker-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2Ffitness-tracker-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2Ffitness-tracker-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coslynx%2Ffitness-tracker-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coslynx","download_url":"https://codeload.github.com/coslynx/fitness-tracker-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245152739,"owners_count":20569399,"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":["code-generation","community-engagement","developer-tools","devops","fitness-tracker","goal-setting","javascript","machine-learning","mvp","nextjs","postgresql","progress-visualization","react","serverless","social-fitness","software-development","supabase","tailwindcss","workout-tracking"],"created_at":"2024-09-30T15:04:02.492Z","updated_at":"2025-12-30T20:04:50.360Z","avatar_url":"https://github.com/coslynx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv class=\"hero-icon\" align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/PKief/vscode-material-icon-theme/ec559a9f6bfd399b82bb44393651661b08aaf7ba/icons/folder-markdown-open.svg\" width=\"100\" /\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003e\nfitness-tracker-app\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003eA web application for setting fitness goals, tracking progress, and staying motivated.\u003c/h4\u003e\n\u003ch4 align=\"center\"\u003eDeveloped with the software and tools below.\u003c/h4\u003e\n\u003cdiv class=\"badges\" align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Framework-Next.js-blue\" alt=\"Framework used for building the application\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Frontend-Javascript,_Html,_Css-red\" alt=\"Frontend technologies used\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Backend-Node.js-blue\" alt=\"Backend technology used\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Database-Supabase-black\" alt=\"Database used for storing user data\"\u003e\n\u003c/div\u003e\n\u003cdiv class=\"badges\" align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/last-commit/coslynx/fitness-tracker-app?style=flat-square\u0026color=5D6D7E\" alt=\"git-last-commit\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/commit-activity/m/coslynx/fitness-tracker-app?style=flat-square\u0026color=5D6D7E\" alt=\"GitHub commit activity\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/coslynx/fitness-tracker-app?style=flat-square\u0026color=5D6D7E\" alt=\"GitHub top language\" /\u003e\n\u003c/div\u003e\n\n\n## 📑 Table of Contents\n- 📍 Overview\n- 📦 Features\n- 📂 Structure\n- 💻 Installation\n- 🏗️ Usage\n- 🌐 Hosting\n- 📄 License\n- 👏 Authors\n\n## 📍 Overview\nThe repository contains a Minimum Viable Product (MVP) called \"fitness-tracker-app\" that provides a comprehensive solution for fitness enthusiasts using a combination of frontend and backend technologies. The application leverages React for a dynamic and user-friendly interface, Next.js for a robust and scalable framework, Node.js for backend logic, Supabase for secure data storage, and various third-party libraries for features like authentication, charting, and social sharing.\n\n## 📦 Features\n|    | Feature            | Description                                                                                                        |\n|----|--------------------|--------------------------------------------------------------------------------------------------------------------|\n| 🔐 | **User Authentication** |  Allows users to create accounts, securely log in, and manage their profiles. This ensures data privacy and access control.    |\n| 🎯 | **Goal Setting**       |  Enables users to define personalized fitness goals with customizable parameters like target weight, distance, and timeframes. |\n| 🏋️ | **Workout Tracking**    |  Provides a way for users to log their workouts, including type, duration, intensity, and key metrics.                      |\n| 📈 | **Progress Visualization** |  Visualizes user progress towards their goals through interactive charts and graphs for better insights and motivation. |\n| 🤝 | **Social Community** |  Allows users to connect with others, share their achievements, and receive support and encouragement.           |\n| 🌐 | **API Integration** |  Integrates with third-party fitness trackers to automatically import user data, providing a comprehensive view of their fitness activity.  |\n| 🛡️ | **Data Security**  |  Implements robust security measures like encryption, access control, and data sanitization to protect user information.  |\n| ⚡️ | **Performance Optimization** |  Designed for fast loading times, smooth user interactions, and efficient data retrieval using techniques like caching and optimized database queries. |\n| 🏗️ | **Scalable Architecture** |  Built with a scalable architecture that can accommodate increasing user traffic and data volume.                   |\n\n## 📂 Structure\n```text\nfitness-tracker-app\n├── components\n│   ├── Button.tsx\n│   ├── Header.tsx\n│   ├── Layout.tsx\n│   ├── GoalInput.tsx\n│   ├── ProgressChart.tsx\n│   └── SocialShareButton.tsx\n├── pages\n│   ├── api\n│   │   ├── auth.ts\n│   │   ├── goals.ts\n│   │   └── progress.ts\n│   ├── _app.tsx\n│   ├── index.tsx\n│   ├── dashboard.tsx\n│   └── login.tsx\n├── styles\n│   └── global.css\n├── utils\n│   ├── helpers.ts\n│   ├── api.ts\n│   ├── auth.ts\n│   └── validation.ts\n├── config\n│   └── next-auth.config.ts\n├── middleware\n│   └── authentication.ts\n├── .env\n└── package.json\n```\n\n## 💻 Installation\n### 🔧 Prerequisites\n- Node.js\n- npm\n- Docker (optional, for deployment)\n\n### 🚀 Setup Instructions\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/coslynx/fitness-tracker-app.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd fitness-tracker-app\n   ```\n3. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n## 🏗️ Usage\n### 🏃‍♂️ Running the Application\n1. Start the development server:\n   ```bash\n   npm start\n   ```\n2. Open your browser and navigate to [http://localhost:3000](http://localhost:3000).\n\n### ⚙️ Configuration\nAdjust configuration settings in `config/next-auth.config.ts` or `.env` to customize database credentials and other environment-specific variables. \n\n### 📚 Examples\n- 📝 **Example 1**: **Goal Creation:** Users can create a new goal by providing the goal type (e.g., weight loss, distance running) and target value.\n- 📝 **Example 2**: **Workout Logging:** Users can record workouts by specifying the type (e.g., running, cycling), duration, intensity, and other relevant details.\n- 📝 **Example 3**: **Social Sharing:** Users can share their achievements on social media platforms like Facebook, Twitter, or Instagram.\n\n## 🌐 Hosting\n### 🚀 Deployment Instructions\n#### Vercel Deployment (Recommended):\n1. **Create a Vercel Account:** If you don't already have one, sign up for a Vercel account at [https://vercel.com/](https://vercel.com/).\n2. **Initialize Vercel Project:** In your project directory, run:\n   ```bash\n   npx create-next-app@latest -e with-vercel\n   ```\n3. **Deploy to Vercel:** Follow the Vercel CLI prompts to configure your project and deploy to Vercel. \n4. **Configure Environment Variables:** Set up your environment variables (e.g., database credentials) on the Vercel dashboard.\n\n#### Other Hosting Options:\n- **Netlify:**  Follow similar steps as with Vercel, using the Netlify CLI or web interface.\n- **GitHub Pages:**  Build a static version of your application and deploy it to GitHub Pages.\n- **AWS:** Use AWS services like Elastic Beanstalk or EC2 to host your application.\n- **Google Cloud:** Use Google Cloud Platform services like App Engine or Compute Engine to host your application.\n\n### 🔑 Environment Variables\n- **`SUPABASE_URL`**: Your Supabase URL (found in your Supabase project settings)\n- **`SUPABASE_KEY`**: Your Supabase API key (found in your Supabase project settings)\n\n## 📜 API Documentation\n### 🔍 Endpoints\n- **`GET /api/auth/session`**: Retrieves the user's session information.\n- **`POST /api/auth/signin`**: Authenticates a user with email and password.\n- **`POST /api/auth/signup`**: Registers a new user with email and password.\n- **`GET /api/goals`**: Retrieves a list of the user's goals.\n- **`POST /api/goals`**: Creates a new goal for the user.\n- **`PUT /api/goals/:id`**: Updates an existing goal.\n- **`DELETE /api/goals/:id`**: Deletes a goal.\n- **`POST /api/progress`**: Logs a new workout and updates progress for a goal.\n- **`GET /api/progress/:goalId`**: Retrieves progress data for a specific goal.\n\n### 🔒 Authentication\nThe API uses JWT tokens for authentication. When a user logs in, they receive a JWT token that is used for subsequent requests to protected endpoints.\n\n### 📝 Examples\n- **Retrieve user session data:**\n   ```bash\n   curl -X GET http://localhost:3000/api/auth/session\n   ```\n\n## 📜 License \u0026 Attribution\n\n### 📄 License\nThis Minimum Viable Product (MVP) is licensed under the [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0/) license.\n\n### 🤖 AI-Generated MVP\nThis MVP was entirely generated using artificial intelligence through [CosLynx.com](https://coslynx.com).\n\nNo human was directly involved in the coding process of the repository: fitness-tracker-app\n\n### 📞 Contact\nFor any questions or concerns regarding this AI-generated MVP, please contact CosLynx at:\n- Website: [CosLynx.com](https://coslynx.com)\n- Twitter: [@CosLynxAI](https://x.com/CosLynxAI)\n\n\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003e🌐 CosLynx.com\u003c/h1\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eCreate Your Custom MVP in Minutes With CosLynxAI!\u003c/em\u003e\n\u003c/p\u003e\n\u003cdiv class=\"badges\" align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Developers-Drix10,_Kais_Radwan-red\" alt=\"\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Website-CosLynx.com-blue\" alt=\"\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Backed_by-Google,_Microsoft_\u0026_Amazon_for_Startups-red\" alt=\"\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Finalist-Backdrop_Build_v4,_v6-black\" alt=\"\"\u003e\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoslynx%2Ffitness-tracker-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoslynx%2Ffitness-tracker-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoslynx%2Ffitness-tracker-app/lists"}