Shadcn-UI Store is a Frontend-only virtual store project built with Next.js, TypeScript, Shadcn-UI, Zustand, and TailwindCSS. This project features a shopping cart where users can add products, view the total, and at the end of the checkout process, the application generates a summary message containing all customer details and selected products. This message is sent to the store via WhatsApp.
This project is purely client-side, meaning there is no backend or API integration involved. It serves as an example of modern UI development with interactive components, state management, and dynamic content rendering.
- Interactive shopping cart functionality.
- Automatic generation of a WhatsApp message with the order summary.
- Fully responsive design with TailwindCSS.
- Modular and reusable components using Shadcn-UI.
- State management handled by Zustand.
To get a local copy of this project up and running, follow these steps.
-
Clone the repository:
git clone git@github.com:LucasAlvaresA/shadcn-ui-store.git
-
Install the NPM packages:
Note: Due to compatibility issues between Shadcn-UI and Next.js 15, you may encounter dependency errors during installation. In this case, use the following command to force the installation of the required packages:
npm install --force
-
Create a
.env
file at the root of the project. Use the provided.env.example
as a template.Example
.env
file:# Your WhatsApp number NEXT_PUBLIC_WHATSAPP="123456789101112131415"
-
Run the project:
npm run dev
This project demonstrates various frontend features and UI components, including a shopping cart and WhatsApp integration, while focusing solely on client-side functionality. Feel free to explore, modify, and expand upon this project as you wish.