This is an example of redux in react apps. This code was forked from a Dan Abramov repo.
This app use a fake backend in order to ilustrate the flow of how to manage async actions with redux.
Follow the next steps to run this project locally:
- Clone the repo
Run the following on terminal:
git clone https://github.com/CalaoJuanPablo/todos.git
cd todos
- Install dependencies
Install all the dependencies for the project (NOTE: You must have node and npm and/or yarn installed):
npm install
yarn install
- Run the development server
You can run a developer server in localhost:3000
npm start
If you want to run a production build then follow next steps:
- Perform a build for production
npm run build
This will build all the app in a folder called dist
where you can find all the code minified.
- Serve the production build
npm run serve
This will serve the production build in localhost:5000