Headless Shop is an e-commerce web application built with Next.js 13, TypeScript, Tailwind CSS, and Shadcn-UI. It leverages a Shopify Storefront as the backend, with Prisma and PostgreSQL for data storage. Data fetching is handled using Apollo Client, and state management is achieved with Redux Toolkit.
Check out the live site at Headless Shop.
Here are some design previews of the Headless Shop web application:
- Shopfront Integration: Headless Shop integrates with a Shopify Storefront, providing a seamless e-commerce experience.
- Data Fetching: Apollo Client is used for efficient and flexible data fetching from the backend.
- State Management: Redux Toolkit is employed for centralized state management, ensuring a smooth user experience.
- Responsive Design: The application is designed to be responsive and user-friendly on various devices.
- Customizable Styles: Tailwind CSS and Shadcn-UI are used for easily customizable and beautiful UI components.
- Database Storage: Prisma and PostgreSQL are used to store and manage application data efficiently.
- Next.js 13
- TypeScript
- Tailwind CSS
- Shadcn-UI
- Apollo Client
- Redux Toolkit
- Shopify Storefront
- Prisma
- PostgreSQL
-
Clone the repository:
git clone https://github.com/madeelchaudhary/headless-shop.git
-
Navigate to the project directory:
cd headless-shop
-
Install the dependencies:
npm install
-
Configure your environment variables, including your Shopify Storefront credentials and database connection details.
-
Run the database migrations:
npx prisma migrate dev --name init
-
Run the development server:
npm run dev
-
Navigate to http://localhost:3000 in your browser to view the application.
- Browse the products on the home page.
- Navigate to the shop page to view all available products.
- Click on a product to see its details on the product detail page.
- Add items to your cart and proceed to the cart page to review and place your order.
- Enjoy shopping!
Contributions are welcome! Please feel free to submit a Pull Request.