O'Reilly logo

Redux in Action by Marc Garreau and Will Faurot

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required