Skip to content

LucasAlvaresA/shadcn-ui-store

Repository files navigation

Shadcn-UI Store

Project Overview

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.

Features

  • 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.

Getting Started

To get a local copy of this project up and running, follow these steps.

Installation

  1. Clone the repository:

    git clone git@github.com:LucasAlvaresA/shadcn-ui-store.git
  2. 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
  3. 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"
  4. Run the project:

    npm run dev

Conclusion

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.


About

A store created with Next.js, Shadcn UI, TailwindCSS and Zustand

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published