Skip to content

hasaneyldrm/logpress-public

Repository files navigation

πŸ‹οΈ LogPress AI

AI-powered fitness & workout tracker

Plan your workouts, track your progress, and discover your fitness score β€” calculated by AI.

React Native React TypeScript Platform License: MIT PRs Welcome


πŸ“± Screenshots

Onboarding β€” a short, friendly flow that personalizes the experience:


Welcome

Gender

Age

Weight

Height

In the app β€” workout logging and statistics (dark theme):


Log a Workout

Statistics

✨ Features

  • 🧭 Personalized onboarding β€” gender, age, weight & height β†’ tailored setup
  • πŸ€– AI fitness score β€” workout analysis and a personal progress plan, powered by OpenAI
  • πŸ“ Workout logging β€” build routines, track sets / reps / weight, save history
  • πŸ“Š Statistics β€” general rating, total volume, weekly activity and progress charts
  • πŸ† Gamification β€” points, badges and leaderboard (Bronze β†’ higher levels)
  • πŸ’Ž Premium / paywall β€” subscription management via Adapty
  • 🌍 Localization β€” multi-language support with i18next
  • πŸŒ“ Light & dark themes

🧱 Tech Stack

Layer Technology
Framework React Native 0.80 Β· React 19 Β· TypeScript
State Redux Toolkit Β· React Redux
Navigation React Navigation 7 (native-stack)
Backend / Auth Supabase
AI OpenAI API
Subscriptions Adapty
Analytics Firebase Analytics
UI styled-components Β· Lottie Β· react-native-svg Β· react-native-video
i18n i18next Β· react-i18next

πŸš€ Getting Started

This is the public / sanitized version of the app. It ships without real API keys or Firebase config β€” bring your own to run it.

1. Install dependencies

npm install
cd ios && bundle install && bundle exec pod install && cd ..

2. Configure environment

cp .env.example .env

Fill in .env with your own keys:

Variable Where to get it
OPENAI_API_KEY https://platform.openai.com/api-keys
ADAPTY_API_KEY https://app.adapty.io (starts with public_live_)
SUPABASE_URL https://supabase.com β†’ Project Settings β†’ API
SUPABASE_ANON_KEY https://supabase.com β†’ Project Settings β†’ API

3. Firebase (analytics)

  • iOS β€” create an iOS app in your Firebase project, download GoogleService-Info.plist, drop it into ios/. (Template: ios/GoogleService-Info.plist.example)
  • Android β€” download google-services.json into android/app/.

4. iOS signing

  • Open ios/logpressai.xcworkspace in Xcode β†’ Targets β†’ logpressai β†’ Signing & Capabilities β†’ select your Apple Developer Team.
  • Change the Bundle Identifier to your own (current: com.logpress.app).

5. Run

npm start          # Metro bundler
npm run ios        # or
npm run android

πŸ”Œ Offline / Demo Mode

Want to run the app with no backend and no internet (demos, App Store screenshots, offline use)? Flip a single switch:

// src/config/offline.ts
export const OFFLINE_MODE = true;

When enabled, the app makes zero network requests:

  • Supabase (auth + all queries), Adapty, Firebase Analytics and OpenAI calls are short-circuited.
  • Paywall screens show mock products, and β€œBuy Premium” succeeds instantly (no real payment).

Set it back to false and rebuild to go online.


πŸ› οΈ Troubleshooting

  • fmt / consteval build error on iOS (Xcode 16.3+ / 26): the post_install hook in ios/Podfile auto-patches Pods/fmt/include/fmt/base.h (FMT_USE_CONSTEVAL=0). If you hit it, re-run bundle exec pod install and build again.
  • General React Native issues: https://reactnative.dev/docs/troubleshooting

🀝 Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

πŸ“„ License

Released under the MIT License β€” free to use, modify and distribute.

Built with ❀️ using React Native

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages