Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Alexandra Anghel - Building an E-commerce Progr...

Alexandra Anghel - Building an E-commerce Progressive Web App with React and WooCommerce

Progressive Web Apps are becoming the new standard for building amazing experiences on the web. E-commerce businesses all over the world, starting with Alibaba, have already proved that having a PWA will greatly improve conversions and interactions rates. WordPress's popularity makes it the perfect candidate for powering / sustaining this new wave of web development. The WordPress REST API has opened the door for separating content from UI/UX, allowing us to create engaging apps for the web. It’s up to the community to accept the challenge and steer both WordPress and the web in a “progressive” direction.

WordPress Greek Community

December 09, 2017
Tweet

More Decks by WordPress Greek Community

Other Decks in Technology

Transcript

  1. Building an E-commerce Progressive Web App with React and WooCommerce

    Alexandra Anghel CTO & Co-founder at Appticles, Co-founder Codette
  2. What is a Progressive Web App? “A new way to

    deliver amazing user experiences on the web”* *https://developers.google.com/web/progressive-web-apps/ Reliable Fast Engaging ! " ⋆
  3. PWA Capabilities Secure (HTTPS) $ % Add to Homescreen Web

    Push Notifications & Offline mode ' App Shell JS
  4. 86% 14% PWA vs. RWD % RWD has reached saturation

    Customers prefer app-like experiences on the web (87% * https://www.forrester.com/report/Brief+Embrace+Responsive+Web+Design/-/E-RES133861
  5. Why Progressive Web Apps? Delight Users Grow Engagement Increase Conversions

    $ ♥ + More on: https://developers.google.com/web/showcase
  6. Showcase: Alibaba - 76% increase in total conversions across browsers


    - 4X higher interaction rate from Add to Homescreen
  7. JavaScript Frameworks / Libraries AngularJS & Ionic PWA & desktop

    apps React Intuitive, ES6 PWA boilerplate Vue.js Easy to learn
  8. WooCommerce REST API - NPM: woocommerce-api (consumer key & secret)

    - Needs a proxy for restricting access to endpoints composer require automattic/woocommerce
  9. Create New React App in 4 Simple Steps 1) Install

    NodeJS & NPM globally npm install create-react-app -g create-react-app my-app 2) Install create-react-app boilerplate 3) Generate new React application cd my-app & npm start 4) Start application
  10. Getting started with React Small React Components , Folders by

    Feature - Linter with Airbnb JavaScript Style Guide . http://airbnb.io/javascript
  11. Passing Props between Components API Categories CategoriesList CategoryCard Props: categories

    Props: id, image, name CategoryCard Props: id, image, name …
  12. Add Product to the Shopping Cart onClick Redux Action {type:

    ADD_TO_CART, product} Redux Reducer {cartProducts}