A test project that uses the PokemonAPI to test TypeScript on a React Project.
This project was created by using the typescript template provided by create react app, and then the following features were integrated:
- Redux.
- Redux Thunk.
- React Router DOM
- Basic ESlint and Prettier.
-
Clone this repository and then run the following command:
npm install
-
After all dependencies are installed, run the following command to execure the application:
npm start
The project source directory is structured as follows:
📦src
┣ 📂components
┃ ┗ 📂PokemonList
┃ ┃ ┣ 📂PokemonListItem
┃ ┃ ┃ ┣ 📜PokemonListItem.module.css
┃ ┃ ┃ ┗ 📜index.tsx
┃ ┃ ┣ 📜PokemonList.module.css
┃ ┃ ┗ 📜index.tsx
┣ 📂helpers
┃ ┗ 📜constants.ts
┣ 📂pages
┃ ┣ 📂Pokemon
┃ ┃ ┣ 📜Pokemon.module.css
┃ ┃ ┗ 📜index.tsx
┃ ┗ 📂Pokemons
┃ ┃ ┗ 📜index.tsx
┣ 📂redux
┃ ┣ 📂actions
┃ ┃ ┣ 📜index.tsx
┃ ┃ ┗ 📜types.ts
┃ ┗ 📂reducers
┃ ┃ ┣ 📜index.tsx
┃ ┃ ┗ 📜pokemonReducer.tsx
┣ 📂routes
┃ ┗ 📜index.tsx
┣ 📂types
┃ ┣ 📜index.tsx
┃ ┗ 📜redux.tsx
┣ 📜App.css
┣ 📜App.test.tsx
┣ 📜App.tsx
┣ 📜index.css
┣ 📜index.tsx
┣ 📜logo.svg
┣ 📜react-app-env.d.ts
┣ 📜serviceWorker.ts
┗ 📜setupTests.ts
- Add Jest and UI testing.
- Replace fetch with Axios.
Made with ❤️ by Cristian Restituyo.