Skip to content

rodrigo1991/react-redux-thunk-shop

Repository files navigation

Example project using react,redux, redux-thunk and json-server

The following project is an example/boilerplate using react and redux with ducks pattern simulating the backend server with json-server

you can log in using admin:admin please have in mind that I do not suggeest this type of login appreach on production, it is just an example using thunk

This is a React SPA website to run a local server and add some products to the cart

Execute example

Using node

To execute the example you need to have node installed on your system

With the project source code on your pc, you can execute it by going to the root folder of the project and doing the following steps:

1. Install dependencies

To install the dependencies you need to execute the following command

npm i

2. Execute project

npm run dev

The application will be executed in http://localhost:3000 (and it will fail in case of having the port 3000 busy) and json server in http://localhost:5000 (and it will fail in case of having the port 5000 busy)