This project was bootstrapped with Create React App.
In the project directory, you can run:
-
npm install
Run this first to get all dependencies. -
npm start
Runs the app in the development mode.Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console. -
npm test
Launches the test runner in the interactive watch mode. -
npm run build
Builds the app for production to thebuild
folder.
Boilerplate to built a SPA based on create-react-app and redux.
- ReactJS for the view layer
- Redux to manage the state.
- ducks to organise actions, reducers, side-effects, etc.
- I'll keep it simple for this exercise and use redux-thunk for side-effects.
There are more sophisticated options like redux-observable or redux-saga.