This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Step 1: Setup Folders | |
| // Create an actions and a reducers folder. Then add an index.js file in both folders. | |
| // Required dependency installs: axios, redux, react-redux, redux-thunk | |
| ************************************************ | |
| // Step 2: Create Redux Config File | |
| // @ Root of application create a <config>.js file. | |
| import { createStore } from 'redux'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Configuring the setup | |
| 1. Setting up the dependices | |
| yarn init -y (Initalises a packag.json with the default values) | |
| yarn add knex sqlite3 (Add knex sqlite module) | |
| yarn add jest --dev (Add jest to dev dependices) | |
| 2. Adding scripts to the package.json file |