Giter VIP home page Giter VIP logo

headless-commerce-react's Introduction

Headless Commerce React

Headless Commerce React is designed to showcase the capabilities of the Salesforce Commerce API and these API's could be utilized to build a headless shopping experience. In order to fully demenstrate the capabilities, the app is running all API's as a community user. This ensures that all API calls are made in the context of a user / account, which enables add to cart and getting cart information. With that said, you will need to make sure you have a fully setup B2B Commerce (Aura or LWR) instance setup in order for this app to function correctly.

Usage

โš ๏ธ The source code for this repository is provided for reference and educational purposes only. Please consider carefully before utilizing any of the code for production implementations.

Organization

This package is made up of two primary sections, the Node Server & React engine. Node

  • Routes: This folder holds all of the available routes that are needed to load the product detail page

React

  • Components: Main listing of components that are used to render the product detail page
  • Landmarks: Header rendering component
  • Services: React functions that are used to fetch and post information from the frontend to the node routes

Features

  • Load product detail page based on product id in parameter
  • Load the mini cart with items based on what's actually in your cart
  • Add an item to the cart based on the button click

Known Items

  • Effective Account is currently just a parameter that can be passed through a query parameter, this in a real life situation should be gather by the login event of the user
  • Only the product detail page has been built out, so there is no home page, cart, or checkout page available

headless-commerce-react's People

Contributors

shane-saltbox avatar

Stargazers

Michael Bieber avatar waik3ong avatar

Watchers

 avatar

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.