Just A Click — No JavaScript

A few things I had to take into consideration

1. be able to shuffle the restaurants before the redirect occurs so the user gets a random restaurant
2. only display one restaurant from the shuffled list
3. the list of restaurants being shuffled should only be taken from the current user’s list
4. decide how the redirect will happen
5. decide where the redirect will go to
6. what the user should see after being redirected
7. lastly, make it seamless!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store