Skip to content

Trex099/IronLog

Repository files navigation

IronLog - Fitness Tracking App

IronLog is a comprehensive fitness tracking application that helps users manage their workout routines, track progress, and achieve their fitness goals.

AI Chat Feature Configuration

The Chat feature can use either Google's Gemini AI directly or the requesty.ai router service to provide intelligent responses to your fitness-related questions. Choose one of the following setup options:

Option 1: Direct Gemini Integration

1. Add the GoogleGenerativeAI Package

  1. In Xcode, go to File > Add Packages...
  2. Enter the package URL: https://github.com/google/generative-ai-swift
  3. Click "Add Package"
  4. Select all the targets you want to add the package to

2. Get a Gemini API Key

  1. Go to Google AI Studio
  2. Create an account if you don't have one
  3. Create a new API key
  4. Copy the API key

3. Configure the API Key

  1. Open GeminiService.swift in the Services folder
  2. Replace the placeholder "YOUR_GEMINI_API_KEY" with your actual API key:
    private let apiKey = "YOUR_ACTUAL_API_KEY_HERE"

Important: Do not commit your API key to public repositories. Consider using a separate configuration file that's not tracked by version control, or environment variables for production.

Option 2: Using requesty.ai Router (Advanced)

If you prefer to use the requesty.ai router service (which can provide access to additional models), follow these steps:

1. Get a requesty.ai API Key

  1. Sign up for an account at requesty.ai
  2. Create a new API key in your dashboard
  3. Copy the API key

2. Configure the API Key

  1. Open GeminiService.swift in the Services folder
  2. Make sure you're using the router implementation (no Google SDK dependency)
  3. Replace the placeholder with your actual API key:
    private let apiKey = "YOUR_ROUTER_API_KEY_HERE"

Important: The requesty.ai implementation uses a REST API approach rather than the Google SDK. Ensure you are using the correct implementation of GeminiService.swift for your chosen method.

3. Testing the Integration

  1. Build and run the app
  2. Navigate to the Chat tab
  3. Type a fitness-related question and send it
  4. You should receive an intelligent response from the AI service

Features

  • Track workouts by day of the week
  • Log exercises with sets, reps, and weights
  • Set and monitor fitness goals
  • View progress over time
  • AI-powered chat for fitness advice
  • Sync data across devices with Firebase

Getting Started

  1. Clone the repository
  2. Open IronLog.xcodeproj in Xcode
  3. Build and run on your iOS device or simulator

Requirements

  • iOS 15.0+
  • Xcode 14.0+
  • Swift 5.5+

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages