- Crear la imagen a partir del Dockerfile :
docker build -t condef5/todo-hunter .
- Correr un container :
docker run -d -p 80:80 --name hunter condef5/todo-hunter
- Subir imagen a docker-hub:
docker push condef5/todo-hunter
- Desplegar desde un servidor :
docker run -p 80:80 -d --name hunter-static condef5/todo-hunter
In every React/Redux project, you need to create and test at least four things: reducer, actions, component, container. In this project, we will take a look at the first three.
- I use redux-mock-store for your testing your redux async action creators and middleware
- I use axios-mock-adapter that allows to easily mock requests( if you use
fetch
instead ofaxios
you can try fetch-mock)