Skip to content

coslynx/PulseTracker-test-1-t3h5xx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FitTrack

A web application designed to empower fitness enthusiasts to effortlessly track their fitness goals, monitor their progress, and share their achievements with friends.

Developed with the software and tools below.

git-last-commit GitHub commit activity GitHub top language

πŸ“‘ Table of Contents

  • πŸ“ Overview
  • πŸ“¦ Features
  • πŸ“‚ Structure
  • πŸ’» Installation
  • πŸ—οΈ Usage
  • 🌐 Hosting
  • πŸ“„ License
  • πŸ‘ Authors

πŸ“ Overview

The repository contains a Minimum Viable Product (MVP) called "FitTrack" that provides a comprehensive solution for fitness goal tracking using the following tech stack: Next.js, React, JavaScript, HTML, CSS, Node.js, and PostgreSQL.

πŸ“¦ Features

Feature Description
πŸ” User Authentication Securely create and manage user accounts with email and password authentication or utilize social logins for seamless account creation.
🎯 Goal Setting Define personalized fitness goals with clear objectives, timelines, and tracking metrics.
πŸ“ˆ Progress Tracking Track user progress against set goals using visually engaging dashboards, graphs, and reports that offer insights into individual progress.
🀝 Social Sharing Share progress, achievements, and motivational messages with friends and a supportive community.
🎨 Customization Personalize the experience with custom themes, settings, and preferences.
🌐 Accessibility Optimized user experience across various devices and platforms, including smartphones, tablets, and desktops.
πŸ”Œ Integrations Seamlessly integrate with popular fitness trackers and devices like Fitbit, Garmin, and Apple Health.
πŸ“Š Analytics Provide users with insightful analytics that offer valuable data about their progress and performance.
⚑️ Performance Fast loading times and seamless user interactions for a smooth and enjoyable user experience.
πŸ”’ Security Prioritize user data security by implementing secure user authentication, data encryption, and industry-standard security best practices.
πŸ”„ Scalability Designed to be scalable, accommodating a growing user base and new features without compromising performance.
πŸ‘¨β€πŸŽ¨ User-Centric Experience A user-friendly interface with intuitive navigation and a mobile-first approach.

πŸ“‚ Structure

└─ components
   β”œβ”€ Button.tsx
   β”œβ”€ Header.tsx
   β”œβ”€ Layout.tsx
   β”œβ”€ GoalInput.tsx
   β”œβ”€ ProgressChart.tsx
   └─ SocialShareButton.tsx
└─ pages
   β”œβ”€ api
   β”‚   β”œβ”€ auth.ts
   β”‚   β”œβ”€ goals.ts
   β”‚   └─ progress.ts
   β”œβ”€ _app.tsx
   β”œβ”€ index.tsx
   β”œβ”€ dashboard.tsx
   └─ login.tsx
└─ styles
   └─ global.css
└─ utils
   β”œβ”€ helpers.ts
   β”œβ”€ api.ts
   β”œβ”€ auth.ts
   └─ validation.ts
└─ config
   └─ next-auth.config.ts
└─ middleware
   └─ authentication.ts
└─ .env
└─ package.json
└─ README.md
└─ tailwind.config.ts
└─ tsconfig.json

πŸ’» Installation

πŸ”§ Prerequisites

  • Node.js
  • npm
  • Docker

πŸš€ Setup Instructions

  1. Clone the repository:
    • git clone https://github.com/coslynx/FitTrack-MVP.git
  2. Navigate to the MVP directory:
    • cd FitTrack-MVP
  3. Install dependencies:
    • npm install

πŸ—οΈ Usage

πŸƒβ€β™‚οΈ Running the MVP

  1. Start the development server:
    • npm start
  2. Open your browser and navigate to http://localhost:3000.

βš™οΈ Configuration

Adjust configuration settings in 'config.js' or '.env'.

πŸ“š Examples

  • πŸ“ Example 1: How to set a fitness goal.
  • πŸ“ Example 2: How to track progress through the dashboard.
  • πŸ“ Example 3: How to share your achievements with friends.

🌐 Hosting

πŸš€ Deployment Instructions

Vercel

  1. Login to Vercel.
  2. Select "New Project".
  3. Import the project from Git by providing the repository URL.
  4. Deploy the application.

Netlify

  1. Login to Netlify.
  2. Click "New site from Git".
  3. Choose GitHub as the source.
  4. Select the repository.
  5. Deploy the application.

GitHub Pages

  1. Configure the GitHub Pages settings in the repository.
  2. Push the changes to the repository.
  3. Access the deployed application through the generated GitHub Pages URL.

πŸ”‘ Environment Variables

  • DB_HOST: Database host
  • DB_USER: Database user
  • DB_PASS: Database password

πŸ“œ API Documentation

πŸ” Endpoints

  • GET /api/auth: Handles user authentication actions (signup, login, logout).
  • GET /api/goals: Manages user fitness goals (create, update, delete, retrieve).
  • GET /api/progress: Retrieves user progress data for visualization.

πŸ”’ Authentication

Use JWT tokens for authentication.

πŸ“ Examples

  • curl -X GET http://localhost:3000/api/auth

πŸ“œ License

This MVP is licensed under the GNU AGPLv3.

πŸ‘₯ Authors

🌐 CosLynx.com

Create Your Custom MVP in Minutes With CosLynxAI!