Appendix. Installation

This appendix covers

  • Setting up a server
  • Installing axios
  • Configuring Redux Thunk
  • Updating the Redux DevTools

Setting up a server

Before you can start dispatching async actions, you need to do a few things:

  • Install and configure json-server, a popular tool for generating REST APIs quickly. This is a Redux book after all, so you don’t want to expend too much energy writing a fully featured back end. json-server allows you to specify a set of resources (such as tasks) and creates a standard set of endpoints to use.
  • Install axios, a popular AJAX library. There’s no shortage of popular AJAX libraries, including the new native browser API window.fetch, but axios is our choice due to a solid feature set and a straightforward ...

Get Redux in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.