LibreFit is my hobby project that allows you to calculate your TDEE (Total Daily Energy Expenditure) based on your body metrics, create goals for weight loss or weight gain from that and encourages you to track your daily calorie intake. Based in your input, you will see easy to understand charts to keep on track with your goal - all that with privacy first in mind.
LibreFit was created after tracking my caloric intake with some Excel and Google Sheets over a year. Out of boredom I decided to try a new stack I've never done anything productive with, I quite enjoyed the journey and thus this project was born.
The project follows the default tauri setup.
librefit
|- librefit-web
|- src-tauri
Navigate to src-tauri/ and issue
cargo build
To start the development server, go to the project root and issue
cargo tauri dev
To start the android development server:
cargo tauri android dev
If you encounter an error like this:
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__floatunditf"
The linker path found in build.rs
does not match.
$NDK_HOME/toolchains/llvm/prebuild/<host>/<lib>/clang/<clang-version>/lib/<os>/libclang_rt.builtins-<guest>.a
export that as env variable, e.g. $LINKER
Force cargo to use that linker with RUSTFLAGS=-C link-arg=$LINKER
Example command (works on my machine (tm)):
RUSTFLAGS="-C link-arg=$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-x86_64-android.a" cargo tauri android dev
The avatars were created with hotpot: https://hotpot.ai/art-generator
If you have any suggestions, impediments or things that absolutely annoy you, please refer to the issue tracker linked at the top of this document. When you are interested in participating in development, feel free to contact me.