Giter Club home page Giter Club logo

shoptrend's Introduction

๐Ÿ›๏ธ ShopTrend Ecommerce App (https://akash-prasad-shoptrend.netlify.app/)

Demo Credentials

email:[email protected]
pass:12345678

Welcome to ShopTrend! ๐ŸŽ‰ This is a cutting-edge e-commerce app built with Vite, React.js, GraphQL, Redux, and Apollo Client. The app leverages the power of the Graphbase serverless GraphQL API for seamless product management.

Images

ShopTrend Logo ShopTrend Logo ShopTrend Logo ShopTrend Logo

Installation ๐Ÿš€

  1. Grafbase local Setup:

    npx grafbase dev
    

    Navigate to http://127.0.0.1:4000/ to grafbase Pathfinder.

  2. Clone the repository:

    git clone https://github.com/AKASH-PRASAD7/Disney-clone.git
    cd client
  3. Install Dependencies: Choose your favorite package manager!

    Using Yarn:

    yarn install

    Or npm:

    npm install

GraphQL Queries ๐Ÿ”

Here are some example GraphQL queries you can use:

Get All Products

query ProductDetailsCollection {
  productDetailsCollection(first: 15) {
    pageInfo {
      hasNextPage
    }
    edges {
      node {
        title
        description
        price
        discountPercentage
        rating
        brand
        thumbnail
        category
        id
        images
      }
    }
  }
}

Get Product by ID

query ProductDetails($id: ID) {
  productDetails(by: { id: $id }) {
    title
    description
    price
    discountPercentage
    rating
    brand
    thumbnail
    category
    id
    images
  }
}

Search Products

query ProductDetailsSearch($input: String) {
  productDetailsSearch(query: $input, first: 30) {
    pageInfo {
      hasNextPage
    }
    edges {
      node {
        title
        description
        price
        discountPercentage
        rating
        brand
        thumbnail
        category
        id
        images
      }
    }
  }
}

Create User

mutation UserCreate {
  userCreate(
    input: { name: "John Doe", email: "[email protected]", password: "1234568" }
  ) {
    user {
      name
    }
  }
}

Configuration โš™๏ธ

Rename .env.example to .env and update it with your API endpoints or authentication keys.

Usage ๐Ÿš€

Kickstart the development server:

yarn dev

Or with npm:

npm run dev

Navigate to http://localhost:5173 to see your app in action.

Build ๐Ÿ—๏ธ

When you're ready to deploy to production:

yarn build

Or using npm:

npm run build

Deployment ๐Ÿš€

Deploy your finely crafted app to your chosen hosting platform. Don't forget to configure environment variables and server settings!

Features ๐ŸŒŸ

  • ๐Ÿ“ฆ Browse products with dynamic category filters
  • ๐Ÿ›’ Cart functionality: Adjust quantities and breeze through checkout
  • ๐Ÿ‘ค User authentication and profile management
  • ๐Ÿ“Š State management via Redux
  • ๐Ÿ”„ Data fetching using Apollo Client and GraphQL
  • ๐Ÿ’Ž Graphbase integration for efficient product data handling
  • ๐Ÿ” Filter products by categories
  • ๐Ÿ”€ Sort products by price and rating
  • ๐Ÿ“ฑ Responsive design catering to mobile and desktop users

Technologies Used ๐Ÿ‘จโ€๐Ÿ’ป

  • โšก Vite: Rapid and efficient build tooling
  • โš›๏ธ React.js: Crafting beautiful UI components
  • ๐Ÿ”— GraphQL: Unleash the power of query language for APIs
  • ๐Ÿ”„ Redux: Taming complex app states
  • ๐Ÿš€ Apollo Client: Fetching data with style
  • ๐ŸŒ Graphbase: Lightning-fast serverless GraphQL API
  • ๐Ÿงถ Yarn or npm: The magic wands of dependency management

License ๐Ÿ“œ

This project is licensed under the MIT License.


shoptrend's People

Contributors

akash-prasad7 avatar

Watchers

 avatar

shoptrend's Issues

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.