Started working on the progress tab to show your bmi how close you are to your goal weight and be able to add progress photos, also hoping to add the abily to see past days going back more than a week
Log in to leave a comment
This Devlog is a big combination of the past few days that ive been trying to get back into this project after being burn out
today i finished the scanning food barcode and acc made the food add to the database. i also added the ability to favorite foods.
then i also tried to start on the ai camera meal calorie guessing think and i literally did all of it with open ai then i realized that open ai scammed me because i though i had 5$ in credits. so i just ended up scrapping all the code exact the camera ui and ill work on it tomorrow when i can find a better ai provider
Log in to leave a comment
i started working on parsing the api after scanning the foods barcode and i made the base part of the gui for the menu you can see the calories, proteins, carbs, fats, and i plan to add, fiber, sugar, sodium, you will also soon be able to see all the ingredients in the food, i will also be adding to change the time which you want to log for like breakfast, lunch, dinner
Log in to leave a comment
started working on the adding foods part and got the barcode part working good i tried to parse the data from open food facts but it was very hard and i ended up giving up and will try and do it later. they make it so complicated for no reson
Log in to leave a comment
Finished the main parts of the main page and added some colors and it turns red if your over your recommended daily limit i also am just started working on the part where you can acc log your food i also did some file clean up and made the main page easier to read i did half of this last night and im sick so sorry for not listing everything i really did ps. there is a like 4 second pause in the video because im changing a value in the database because i havent added that feature into the app yet
I started working on the home screen of the app where you can see the days of the week and see the bar of your percent of calories in your deficit for fulled it also shows if you didn’t log any that day + it tells you the number day so you can easy know what day it is without having to do the mental math you also have a big progress bar that you cant miss. i also added a plus button to the tabs bar that will let you pick your your food that you ate that day. sorry for the sloppy devlog im just tiered and worked 10 hours today if i missed anything ill edit it tomorrow morning
Log in to leave a comment
just added simple changes to the database functions so the new system with TDEE and Macros stays edit on editing personal info
most of the functions look simulir with some spread out differences
i set this up for Change current weight, change height, change age, change gender
Log in to leave a comment
Big update! We’re getting close to the main feature of the app — calorie tracking.
Today, I started moving several functions out of my TSX files into separate TS files to make the codebase easier to read and maintain. I also added calculations for:
TDEE (Total Daily Energy Expenditure)
Personalized calorie deficit
Daily macro targets (protein, fats, and carbs)
How the calculations work
Convert height to inches and calculate BMI with weight and height.
Calculate BMR using height, weight, age, and gender.
Apply an activity multiplier based on workouts per week to get TDEE.
Subtract calories based on desired weekly weight loss to get goal daily calories.
Split calories into macros:
30% protein
25% fat
45% carbs
Convert macro calories into grams.
Calculate recommended daily limits for fiber, sugar, and sodium.
Log in to leave a comment
I like the idea of your project. Really great…..
Today I worked on the whole project and got it finished:
Log in to leave a comment
Added some small fixes, like changing text that was misspelled and adding checks to make sure users don’t enter nothing in the on boarding process. Also added a function to the delete button that deletes your account in Clerk and in the Convex database.
psa - also added the video from last devlog because format was invalid
Log in to leave a comment
Pretty big update today. I added all the tabs inside the personal details page where you could:
Log in to leave a comment
will post a new video in the next devlog😭
So I switched back to pounds instead of kilograms, and I also added BMI and BMR into my schema for my database so I could use it later on to calculate how many calories the user should be eating per day, as well as other workout and calorie tracking things.
Log in to leave a comment
Today, I worked on adding multiple languages to my app, including:
Log in to leave a comment
I worked and finished on the edit profile tab, as well as the personal details where you could change:
Log in to leave a comment
Today I finished working on the Settings tab UI and I added:
Started on making the settings tab of the home screen. It took so long because I keep getting this error when I try to add shadows behind the background. It gives me this error saying it couldn’t find a navigation context. I’ve been trying to learn how to fix it, but I haven’t been able to so far.
Log in to leave a comment
Switched from imperial to metric to make development easier
added a function to add all on boarding data to the database and mark the user that they have completed on boarding
also changed database schema to use metric units
Log in to leave a comment
BIG UPDATE
I added dynamic text and variables to the on boarding section as well as fully Overriding the layout so that it will be easier to implement adding data into my convex database
before every form was in a separate page meaning i would have to create a user in the database first with all the info undefined and add it separately after each form was filled out. now i have made one main file onboarding.tsx that hosts every single useState so that i can easily add all the info at once and create the account at the end of the onboarding process
Log in to leave a comment
created the UI for getting height, weight and age in the on boarding section of my app this was by far the hardest to create because im not that expediences in using tailwind next i have to add checksums to make sure the info is acc a real age and height
Log in to leave a comment
added the first out of 12 pages in the onboarding section where you choose your gender and when you click it will light up showing you can continue and if you want to chose a different option it will deselect the other option i still need to setup the database so i can log this info before i can go to the next page and save the data for later so i can calculate stuff like calories and fitness
Log in to leave a comment
I added the function so when a user if created or they are signing in it will check if the user has completed the onboarding questions if they have it will automatically redirect them to the home page
there is a error but the app still works i cant find out how to fix it because im not that experienced with react native and expo
Log in to leave a comment
Ok in this code session i added API route that connects to the clerk webhooks so when a new user is created it contacts the api and adds metadata to the account so my app can tell is the user is a paid user and if the user has completed the first steps
Log in to leave a comment
First Dev Log kinda scaryy…….. all i added was my preexisting code to GitHub. I includes Oauth & regular email authentication with clerk as well as some sign in pages nothing cool yet but considering I’ve been working on this for only like 9 hours total i say its a success
Log in to leave a comment