So I’m trying to make an app called flavor thesaurus.
Basically, I want the user to be able to input an ingredient from the search bar, and then have the ingredient show up on the left side of the page as a button that will stay there until it’s clicked. I also want the user to be able to have multiple ingredients on the left side at a time.
Then, depending on what ingredients are on the left side, the list on the right side will change. For example, if the user has the ingredients “pork, apple” on the left side, then on the right side it would display “honey, mustard, fennel”.
Is something like this possible or am I being too ambitious?
I don’t care if it’ll take me months, I’d really like to make something like this to help people.
Thanks for any suggestions!
Also, here’s a screenshot of what I’ve made so far to give a basic idea of what I’m talking about.
I would love to help, but am not quite clear on your question, in the SS you provided there’s no search bar, since you talked about search bar does that mean that you have the list of the ingredients in your DB?
The box that says “appleslug” is the search bar.
if you can go a call with me and you explain better I might be able to help… geesonofgee@gmail.com, we can do Meet or Zoom
this is definitely possible with custom states as long as you don’t mind the data being lost if they refresh the page. I’m not clear on the connection that you want between the left and right list. the left is ingredients, the right is also ingredients? or is it recipies?
Yes it would be fine if the data is lost on page refresh.
The data on this page will be ingredients on both sides. The ingredients on the right will be ingredients that pair well with ingredients input by the user on the left. This is a page for people who are confident in experimenting with food, so it exists just to show them what ingredients they could add to recipes they might already be using.
I’m gonna make a page at a later date that will output recipes instead of ingredients for people who are less confident in cooking. It’ll be the same as this page, except the right side will contain recipes instead of ingredients.