Food Rater banner

Food Rater

14 devlogs
19h 53m 38s

A way for students of my school to rate food items!
Unfortunately, you guys will not be able to experience the project in its entirely, specifically the rating. However, you are still able to view most of the items and explore the pages.

Demo Repository

Loading README...

Aidan Chang

i made some changes to what the rate page looks like if a user isn’t logged in. I cant access their users document because they dont have one. that’s largely what i spent a big portion of this update on in terms of code, but a lot of other time was devoted towards debugging my firebase rules and some other things due to my vercel page not working. i think im really ready to deploy now

Attachment
0
Aidan Chang

i have completed the profile modal, adding a few things to make it look more fleshed out. i would do this with the settings modal too, except theres nothing that i would add to the settings modal. at this point, i think i have reached a comfortable conlusion to this project

Attachment
Attachment
0
Aidan Chang

i updated how the ratings are calculated, as it turns out that every single leaderboard item on the front end was given a previous ranking of 5, so i updated that. I also updated my API so that items that have no rating are not factored into the ranking calculation, as for the least average rating, items that have no rating would throw off the delta for the rating change that shows. at this point, the project is largely done, and i only need to make some changes to the settings and profile modal before im done i think

Attachment
Attachment
Attachment
0
Aidan Chang

i updated the modal so that it looks the way i wanted it to look and i also added a toast message to tell the user how to find the comments since i realized there is kind of no way you would find out normally

Attachment
Attachment
0
Aidan Chang

i finished the batch updater and it works which is nice. comments show and ratings are updated, and i updated the leaderboard so that only items that have ratings are shown. there are definitely some problems that still need fixing with the leaderboard though

Attachment
0
Aidan Chang

i realized that i needed to have a way to update the rankings and the amount of comments a user makes, so i made another cron job that calls my api every day at 10PM central to update things instead of having to do any rating calculations during read or something like that.

Attachment
0
Aidan Chang

i implemented the first out of 6 steps that i plan to use for a batch updater that will allow me to maintain a ranking system for the leaderboard

Attachment
0
Aidan Chang

in this update, i largely finished the leaderboard page, implementing logic for sorting the items, viewing comments, and other things. i still need to update my batch job so that the ratings are pushed to the database every day and i also need to make some changes to the data stored in the database.

Attachment
Attachment
Attachment
Attachment
0
Aidan Chang

for this devlog, i finished the entire rate page. this includes:

  • completing the invidual rating card
  • completing the entire rate page that includes rating cards
  • updating database values accordingly when users create ratings
  • allowing users to make comments on foods they rate
  • a lot of thinking on how things are stored in the database for the future… again
Attachment
Attachment
Attachment
0
Aidan Chang

for this update (~1hr 30min), i have retrieved the data in the Rate page, but i might have to change that soon with how i plan on separating the menu items. i also began to start working on the RateItem, which will be the individual card that will be the way a user rates items. things are still work in progress, but for some reason Flavortown is adding 9h 49m of work, so i decided to make a devlog. i have ~24hr of work on this project so i’m not really sure whats going on 😅

Attachment
Attachment
0
Aidan Chang

for this update, i have:

  • spent a lot of time refactoring and thinking about what the rate page is going to look like
  • added two new functions to pull things from the database
  • spent a very long time thinking about how data should be stored inside the database
  • spent a very long time thinking about how to minimize cost when updating reviews
Attachment
Attachment
0
Aidan Chang

started working on the “rate” page, so far just got the date selector working

Attachment
0
Aidan Chang

Everything done in this project so far:

  • created the navbar
  • added the basics of all the pages i want
  • integrated firebase for login/user authentication
  • created a settings modal
  • created a profile modal
  • created my own api that gets food items from a website
  • created a cron job that runs my api and updates firestore at 1 am every day
    and most recently, i just added functionality to display food items on the home page :)
Attachment
0
Aidan Chang

I’m working on my first project! This is so exciting. I can’t wait to share more updates as I build.

Attachment
0