A simple React application bootstrapped with Vite that fetches and displays data from the PokeAPI.
- Node.js (version 14 or higher)
- npm (comes with Node.js) or yarn
-
Clone the repository:
git clone https://github.com/your-username/pokeapireact.git
-
Change into the project directory:
cd pokeapireact -
Install dependencies:
npm install # or yarn install
In the project directory, you can run:
-
npm run devStarts the development server with hot module replacement.
npm run dev
The app will be available at
http://localhost:5173by default. -
npm run buildBundles the app for production into the
distfolder.npm run build
-
npm run previewServes the production build locally for testing.
npm run preview
-
npm run lintRuns ESLint to check for code quality and formatting issues.
npm run lint
├── public # Static assets
├── src # Source files
│ ├── assets # Images, icons, etc.
│ ├── components # Reusable React components
│ └── main.jsx # App entry point
├── .eslintrc.js # ESLint configuration
├── index.html # HTML template
├── package.json # Project metadata and scripts
└── vite.config.js # Vite configuration
After running npm run build, deploy the contents of the dist folder to your preferred static hosting service (Netlify, Vercel, GitHub Pages, etc.).
This project is licensed under the MIT License. Feel free to use and modify it as you like.