Skip to Main Content
Redux Quick Start Guide
book

Redux Quick Start Guide

by James Lee, Tao Wei, Suresh Kumar Mukhiya
February 2019
Intermediate to advanced content levelIntermediate to advanced
204 pages
4h 52m
English
Packt Publishing
Content preview from Redux Quick Start Guide

Project structure

The complete code for the backend server is available in CH07/server. In this chapter, we are going to understand how the REST API can be built. Start with an empty folder and follow these steps:

  1. Initiate the project with yarn init or by creating a package.json file. We are already familiar with the process of adding and removing any npm packages from the project. Simply copy the package.json file from CH08 into your new project folder. 
  2. Create a folder called server where we can place all our backend logic. We are going to use the express framework to create backend. Inside the server folder, create a file called index.js. Inside the file, we initiate the express server with the required parameter, as follows: 
/* eslint ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Redux Made Easy with Rematch

Redux Made Easy with Rematch

Sergio Moreno
Learning Redux

Learning Redux

Daniel Bugl
The React Workshop

The React Workshop

Brandon Richey, Ryan Yu, Endre Vegh, Theofanis Despoudis, Anton Punith, Florian Sloot, Daniel Bugl, Brandan Jones, SudarshanReddy Kurri, David Parker, Cihan Yakar

Publisher Resources

ISBN: 9781789610086Supplemental Content