Fitcoder is an Apple Watch application designed to encourage developers to maintain a healthy lifestyle by tracking their standing time. The unique feature of Fitcoder is that it converts the standing time into a commit for your GitHub contribution graph, making health tracking fun and rewarding for developers.
- Tracks how long a developer has been standing.
- Converts the stand time into a commit for your GitHub contribution graph.
- Clone the repository to your local machine:
git clone https://github.com/rmRizki/Fitcoder.git
- Open the project in Xcode:
open Fitcoder.xcodeproj
- Navigate to the
Constants.swift
file and fill in the necessary values:
enum Constants {
static let standTimeThreshold = 10.0 // value used to determine when to commit
static let userName = "userName" // your GitHub username without the @ symbol
static let repoName = "repoName" // your GitHub repo name without the .git extension
static let filePath = "filePath" // file path in the repo to commit
static let token = "token" // your GitHub personal access token
static let name = "name" // your name to put in the commit
static let email = "email" // your email to put in the commit
static let profileImageUrl = "profileImageUrl" // your profile image url
}
Please replace userName
, repoName
, filePath
, token
, name
, email
, and profileImageUrl
with your actual GitHub username, repo name, file path in the repo to commit, personal access token, name, email, and profile image URL respectively. The standTimeThreshold
is the value used to determine when to commit, you can adjust it as needed.
To build the project, open Fitcoder.xcodeproj in Xcode and select Product > Build from the menu.
To run the project, select the desired target device in Xcode and select Product > Run from the menu.
Contributions are welcome. Please open a pull request with your changes.