This is a simple dynamic website that displays info about Pokemons from API, built with React and Redux Toolkit. The goal of this project is to showcase the modern way of using Redux with React and how Redux Toolkit can make it easier to manage the state of an application.
You can visit the live website here.
This project was created for my Medium article on How to simplify Redux Logic with Redux Toolkit. The article goes into detail on how to make asynchronous API calls and manage state with Redux Toolkit. If you're interested in learning more about this project, check out the article:
If you've read the article, I'd love to hear your feedback! ๐ Please feel free to leave your thoughts and suggestions in the comments.
- React.js - JavaScript library for building user interfaces
- Redux Toolkit - Batteries-included toolset for efficient Redux development
- Poke API - Public API to fetch info about Pokemons
- React Bootstrap - Bootstrap components for styling and layout
To get a local copy up and running, follow these steps.
- Node.js installed on your machine
- Clone this repo into your project folder
cd my-projects
git clone [email protected]:IndieCoderMM/pokeverse.git
- Install the dependencies
cd pokeverse
npm install
- Start the development server
npm start
You can deploy this project using:
npm run build
This will create a production-ready build of your website in build/
folder, which you can use to deploy on GitHub pages or any hosting platform.
Deploying on GitHub Pages
To deploy on GitHub pages, follow these steps.
- Create a new GitHub repo and push your project.
- Change the
homepage
url inpackage.json
file.
{
...
"homepage": "https://[your_username].github.io/[your_repo_name]
}
- After building the project with
npm run build
, deploy thebuild/
folder.
npm run deploy
Your project will now be deployed to https://[username].github.io/[repo-name].
This project is licensed under the MIT License - see the LICENSE file for details.