GithubHelp home page GithubHelp logo

ismailnguyen / pwa-kit Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 78.19 MB

React.js based frontend for Salesforce B2C Commerce

Home Page: https://pwa-kit.mobify-storefront.com

License: BSD 3-Clause "New" or "Revised" License

JavaScript 99.98% Shell 0.02%

pwa-kit's Introduction

The Progressive Web App (PWA) Kit

The PWA Kit is a storefront technology for headless commerce using Salesforce Commerce APIs and React. It provides front-end developers with a more flexible and agile approach to build and maintain modern shopping experiences.

This repository is a monorepo that includes the code that powers the PWA Kit. The code is divided into the following packages:

  • pwa: A set of sample code and tooling for PWA Kit projects called the Retail React App
  • pwa-kit-create-app: A tool that generates PWA Kit projects based on the Retail React App
  • pwa-kit-react-sdk: A set of components and utilities for PWA Kit projects

Requirements

  Node ^12.x or ^14.x
  npm ^6.14.4

Installing Dependencies

Behind the scenes, we're using Lerna to manage the monorepo. Lerna lets us install all dependencies and link all packages together with one command:

npm ci

Dependencies that are added to the package.json at the root of the repo are shared between packages. Dependencies listed in the package.json files within each individual package directory work as normal.

Cleaning and Rebuilding

When you pull changes that include modifications to any package's dependencies, run npm ci from the top-level directory (pwa-kit). This command cleans and reinstalls all packages. Run this command frequently during development to ensure that you're using the same package versions as everyone else.

For more information, see the Lerna docs.

Linting

  npm run lint

Localization

See the Localization README.md for important setup instructions for localization.

Testing

Run tests for all packages with:

  cd [repo root]
  npm test

Run integration tests against live APIs for all packages with:

  cd [repo root]
  npm run test:integration

License Information

The PWA Kit is licensed under a BSD 3-Clause license. See the license for details.

Documentation

The full documentation for PWA Kit is hosted on the Commerce Cloud Developer Center.

Useful Links:

pwa-kit's People

Contributors

bendvc avatar alexvuong avatar kevinxh avatar adamraya avatar jkeanesf avatar bredmond-sf avatar rsexton404 avatar vcua-mobify avatar olibrook avatar

Watchers

James Cloos 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.