To begin with Flux, we have to pick a starting point. It could be anything. I find it good to start with the actions. You'll also have to pick a direction of flow. You could go clockwise or counterclockwise. Clockwise is probably good for you as a starting point, so we'll do that.
Don't forget to install the Flux library directly using the following command:
$ npm install flux --save
Note that the preceding command should be executed from our application directory, or you can add it in package.json and execute npm install to install the packages.
Now, let's begin with action as our starting point, where we will be following a single responsibility principle. We'll be creating an actions library to communicate with ...