greendatalab / codash

codash view (front end)
0 stars 0 forks source link

Criar/Configurar aplicação redux #17

Open AndreMaciel66 opened 3 years ago

AndreMaciel66 commented 3 years ago
AndreMaciel66 commented 3 years ago

Para criar a aplicação utilizei o comando abaixo no CMD.

$ npx create-react-app codash --template redux

Nota: O comando do npx não funcinou no ubuntu rodando no WSL2.

npx create-react-app codash --template redux

You are running `create-react-app` 4.0.1, which is behind the latest release (4.0.3).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

npm ERR! code 1
npm ERR! path /mnt/c/Users/andre/dev/ignore-this-is-trash
npm ERR! command failed
npm ERR! command sh -c create-react-app codash --template redux

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/batman/.npm/_logs/2021-03-01T22_51_57_180Z-debug.log
AndreMaciel66 commented 3 years ago

Configurando o redux

Vamos configurar o redux para funcionar com o redux-

Instalando bibliotecas:

yarn add redux redux-persist redux-thunk react-router-dom axios

Dependencias para redux(redux redux-persist redux-thunk), sendo os respectivos: