Giter Site home page Giter Site logo

madeelchaudhary / headless-shop Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 13.56 MB

Home Page: https://nostra-three.vercel.app/

License: MIT License

JavaScript 0.47% TypeScript 95.45% CSS 4.08%
appolo-client next postgresql prisma reactjs redux-toolkit shadcn-ui shopify-api storefront taildwindcss

headless-shop's Introduction

Nostra Headless Shop

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.

Table of Contents

Demo

Check out the live site at Headless Shop.

Design

Here are some design previews of the Headless Shop web application:

Home Page

Home Page

Shop Page (All Products)

Shop Page

Product Detail Page

Product Detail Page

Cart Page

Cart Page

Features

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

Technologies

  • Next.js 13
  • TypeScript
  • Tailwind CSS
  • Shadcn-UI
  • Apollo Client
  • Redux Toolkit
  • Shopify Storefront
  • Prisma
  • PostgreSQL

Setup

  1. Clone the repository:

    git clone https://github.com/madeelchaudhary/headless-shop.git
  2. Navigate to the project directory:

    cd headless-shop
  3. Install the dependencies:

     npm install
  4. Configure your environment variables, including your Shopify Storefront credentials and database connection details.

  5. Run the database migrations:

    npx prisma migrate dev --name init
  6. Run the development server:

    npm run dev
  7. Navigate to http://localhost:3000 in your browser to view the application.

Usage

  1. Browse the products on the home page.
  2. Navigate to the shop page to view all available products.
  3. Click on a product to see its details on the product detail page.
  4. Add items to your cart and proceed to the cart page to review and place your order.
  5. Enjoy shopping!

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

headless-shop's People

Contributors

madeelchaudhary avatar ruheni avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

engrwaqasali

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.