DEV Community

Mykey Deshommes
Mykey Deshommes

Posted on

1

Restaurant website part 2

Hello everyone, this is part 2 from the last post I made called "Restaurant website". So what happens when the user clicks order online, great question. Developers have been trying to answer this question since the beginning of time Lol. Here's my plan, I think it's simple and easy to comprehend ohh did I mentioned it's simple.
The first thing the user is gonna see after clicking the order online button, is a bootstrap card with 3 options, 2 buttons, and a phrase to be exact. 1)Continue As Guest 2) Sign Up 3)This option will be at the bottom "Already have an account? Log in". This bootstrap card will be very similar to what you see on most websites when creating an account.

If the user chooses to continue as a guest, I'll ask for their first name and phone number and stored them in the DB. And allow them to proceed to place an order. I would also be hashing and salting names and phone numbers.

If the user chooses to Sign up, they will have 3 options to sign up with Google, Facebook, and Twitter. The tool I would be using for this part is the latest version of OAth.

If the user chooses already have an account then there would sign in with the method their choose to create an account with. So there would be 3 options, Continue with Google, Facebook, Twitter. Similar to Dev Community :)

I like this approach! I'm happy and confident that I planned this out, I wrote it down, played it out in my head, and shared it because of that our friend imposter syndrome won't be visiting us. As far as the frontend goes for this part I won't be doing anything out of this world most likely the client will want to change something, that goes against everything on how a modern website should look.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay