How gireeshp/fitness_challenge works
Project type and purpose
• Project type: Full-stack, cross-platform mobile application built with Flutter (Dart) and a serverless backend (Appwrite).
• Purpose: Let users create and participate in fitness challenges, sync daily step/calorie data from Apple Health or Google Fit, and view leaderboards.
File structure
• “lib/” – Flutter client code
– screens/… : UI pages (Welcome, Login, Signup, ListChallenges, ChallengeScreen, InviteFriendScreen, NewChallenge)
– components/… : reusable widgets (buttons, input fields, text containers)
– services/appwrite_services.dart : API wrapper for Appwrite calls (auth, database, functions)
– beans/ : data models (e.g., user_challenges_bean.dart)
• android/ and ios/ – platform-specific setup, native entry (MainActivity.kt, AppDelegate.swift), HealthKit/GoogleFit plugin configuration
• functions/ – two serverless Python functions
– create_user_profile/main.py : triggered on new sign-up to create user document
– calculate_leaderboard/main.py : re-calculates rankings based on stored activities
• pubspec.yaml / pubspec.lock – Flutter dependencies, including Appwrite SDK and health plugins
Readme insights
• Client layers: UI → service layer → Appwrite backend
• Backend services: Authentication, Database collections (users, user_activities, challenges, leaderboard), Functions
• External integrations: Apple Health, Google Fit