Skip to content

merriammassey/contextapi-redux-refactor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Context API - Redux Refactor

Description

This project entailed refactoring the state management in an existing MERN eCommerce web app in order to use Redux. While Context API provides sufficient state management, this refactor provided the opportunity to learn Redux as another way to decouple state from components.

The app now uses Redux to build and maintain the web store. Local state was maintained for form inputs, but the important data is now managed globally.

The refactor involved:

  • Creating actions and reducers through Test-Driven Development
  • Setting up global state
  • Adding state data to global state
  • Integrating IndexedDB so users can shop offline
  • Adding Stripe for payment
  • Deploying to Heroku using Mongo Atlas
  • Seeding the deployed app from the command line

Screenshots

Items for sale and Cart

image

Checkout with Stripe

image

Deployed Application

Visit deployed app here

Credits

Starter code provided by Full Stack Bootcamp program at University of Arizona.

©️2021 Merriam Massey# Context API - Redux Refactor

About

Refactor of the state management in an existing MERN eCommerce web app in order to use Redux.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published