Skip to content

PacktPublishing/Redux-Made-Easy-with-Rematch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redux made easy with Rematch

Redux made easy with Rematch

This is the code repository for Redux made easy with Rematch, published by Packt.

Reduce Redux boilerplate and apply best practices with Rematch

What is this book about?

Rematch is Redux best practices without the boilerplate. This book is an easy-to-read guide for anyone who wants to get started with Redux, and for those who are already using it and want to improve their codebase.

This book covers the following exciting features:

  • Understand the principal concepts of Flux and Redux
  • Find out what are the main problems that Rematch solves
  • Become familiar with the Rematch ecosystem
  • Develop an application using Rematch and React together
  • Write unit and integration tests to get 100% test coverage of your programs with Rematch

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter03.

The code will look like the following:

const store = window.Redux.createStore(
 reducer,
 window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_
 DEVTOOLS_EXTENSION__()
);

Following is what you need for this book:

This book is for React and Redux users looking for better alternatives for Redux. Familiarity with JavaScript, React, and Redux will help you make the most of this book.

With the following software and hardware list you can run all code files present in the book (Chapter 1-13).

Software and Hardware List

Software used. OS required
Node.js LTS (14) Windows, Mac OS X, and Linux
Yarn 1.22 Windows, Mac OS X, and Linux
Google Chrome Windows, Mac OS X, and Linux
Visual Studio Code Windows, Mac OS X, and Linux

Chapter's examples

Rematch essentials

Building real-world apps with Rematch

Diving deeper into Rematch

How to run any chapter code?

Make to have installed yarn

In the root of this folder run:

yarn install

After the installation of all modules you can run whathever package you want via this options:

  • You can use an utility script (start.sh) to run from the root folder any chapter code, ONLY if you use Unix or Mac system.
  • Simple move to the corresponding chapter code and run the local scripts situated in the package.json.
  • Use yarn workspace package-name script
  • Use lerna run package-name script

If you want to use the start.sh script accepts two arguments:

  • The chapter package, follows the convention of chapter-[number]
  • The script to run:
    • dev
    • build
    • serve
    • test

For ex:

# Will start the development server of chapter 6 code
./start.sh chapter-6 dev
# or will build the chapter 5 code
./start.sh chapter-5 build

There a lot of scripts and every chapter has it's own so feel free to take a look first on the chapter code which commands are available.


We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author

Sergio Moreno is a frontend developer with more than 4 years of experience heavily focused on the analysis, design, development, and building of large-scale applications. Formerly working at Allfunds, the world's largest fund distribution network, he led the frontend team to build a full new suite of products for the new digital section of Allfunds. He entered the open source world in 2019 and has contributed to big companies including Google, Facebook, Airbnb, Pinterest, and many more. In 2020, he focused on contributions to Rematch, where he released the v2 version with a full rewrite of the code base, full compatibility with TypeScript, and many other improvements, such as reducing the bundle size in some cases by 80%. He is also now the lead mantainer of the LinguiJS library, an amazing internationalization library. He helped to release the v3 version and took on the role of leading the coming years of development of LinguiJS.

In 2021, he joined Flowable as a product engineer, working on their compact and highly efficient workflow and business process management platform for developers, system admins, and business users.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781801076210

About

Redux Made Easy with Rematch, published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6