Code Monkey home page Code Monkey logo

training-project's Introduction

Mobify Platform Project

This Mobify Platform project is a monorepo that includes the Javascript packages you need to build your frontends. It includes:

  • pwa - the code for your PWA
  • connector - the code for your data layer, using commerce-integrations

Folder Structure

.
├── packages/pwa                    # PWA
    ├── app                         # Main project source folder
        ├── components              # Reusable React component
            ├── ...
                ├── index.jsx       # Main component file
                ├── _style.scss      # Component specific styles
                ├── test.js         # Component specific tests
        ├── pages                   # React components which represent pages in the PWA
            ├── ...
                ├── index.jsx       # Main page file
                ├── _style.scss     # Page specific styles
                ├── actions.js      # Page specific Redux actions
                ├── constants.js    # Page specific constants
                ├── reducer.js      # Page specific Redux reducer
                ├── selector.js     # Page specific selector
        ├── config                  # Configurations
        ├── preloader               # Fast initial page painting
        ├── static                  # Application static files such as svg, img, fonts
        ├── style                   # Sass files
        ├── utils                   # Utility functions
        ├── actions.js              # Actions that can be used across all pages
        ├── connector.js            # Configures the Commerce Integration connector for the PWA
        ├── index.jsx               # The React component which contains the rest of the app
        ├── loader.js               # On Tag-Loaded PWAs, this file starts the PWA
        ├── page-actions.js         # Actions that must be fired on every page load are here
        ├── router.jsx              # Configures the PWA routes
        ├── ssr-loader.js           # On Server Side Rendered builds, this file starts the PWA
        ├── ssr.js                  # Configures Server Side Rendering
    ├── dev-server                  # The webpack development server and certificate files
    ├── scripts                     # The npm scripts for build, test, deploy tasks
    ├── tests                       # Automation tests
        ├── e2e                     # End to end tests
    ├── webpack                     # Webpack configurations for production and development
    ├── worker                      # Service worker related code
    ├── ...
    ├── .eslintrc.yml               # Eslint configuration
    ├── .babelrc                    # ES6+ Compilation configuration
    ├── .sass-lint.yml              # SASS lint configuration
    ├── service-worker-loader.js    # The script that import the service worker
    ├── package.json
    ├── README.md
├── packages/connector              # The Commerce Integrations connector

Installation

See our Getting Started guide for the latest installation instructions.

Linting

  npm run lint

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 integrationTest

training-project's People

Contributors

rsexton404 avatar classiccokie avatar ellenmobify avatar johnboxall 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.