davyd-souza / we-coffee

☕ We love to make coffee for you

Home Page:https://lovely-pothos-d77933.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

☕ We Coffee

We love to make coffee for you

TechnologiesObjectiveScreensHow to UseImprovement IdeasAuthor


🚀 Technologies

React TypeScript React Hook Form Zod React Router HTML5 HTML5

🎯 Objective

This project was proposed by Rocketseat. Where we had to create a ecommerce with a shopping cart to practice concepts like:

  • Context API;
  • Reducer Hook;
  • Routing with React Router DOM;
  • Handling forms with React Forms;
  • Validation with Zod;
  • Handling immutable data with Immer;

I have plans to add more features to this project as I progress with my studies. You can check on improvment ideas section.

User should be able to:

  • Add items to cart with selected quantity ;
  • Remove items from cart;
  • Increment, decrement or type new quantity;
  • Fetch address based on zip code typed;

🖥️ Screens

Menu

Search among product and add them to your cart, they are separated by categories, such as: Coffee, Tea, Milkshake, Salty Cream, Bread, Sweet and Water.


Cart

Fill in your address, payment method and change itens you added to your cart. If every data is valid you can submit your order!

Only zip codes from Brazil will work!


Success

After order is completed you'll be redirected to this page where you can find you address, a delivery time (currently static) and payment method.

💡 Improvement Ideas

  • Fix product card sizes
  • Migrate to Next 13
  • Connect to JSON Server
  • Collapsible menu categories
  • Get user's location
  • Better image support
  • Responsive landing page
  • Implement authentication

ℹ️ How to Use

Before cloning the repository into your machine you'll need: Git and NodeJS. Also it is good to have a code editor like VSCode.

#Clone this repository
$ git clone https://github.com/davyd-souza/we-coffee.git we-coffee

#Go into the repository
$ cd we-coffee

# Install dependencies with
$ npm install

# Run app
$ npm run dev

👤 Author

Made with 💛 by Davyd Souza

This whole site was created based on We Coffee's website.

About

☕ We love to make coffee for you

https://lovely-pothos-d77933.netlify.app/


Languages

Language:TypeScript 97.1%Language:JavaScript 1.4%Language:HTML 0.9%Language:CSS 0.6%