PokeApp Front is a front-end application for interacting with Pokémon data. It is built with React and provides a user interface for displaying information about Pokémon, including their species, types, abilities, and weaknesses.
To get started with the PokeApp Front, clone the repository and install the required dependencies.
Before you begin, ensure that you have the following installed on your local machine:
- Node.js (v18 or higher recommended)
- npm or yarn
- TypeScript (for building the project from source)
-
Clone the repository:
git clone <repository-url> cd pokeapp-front
-
Install the dependencies:
npm install
The project is written in TypeScript. If you want to contribute or modify the code, you will need to install TypeScript and its dependencies.
-
Install TypeScript:
npm install -g typescript
-
Build TypeScript files: Compile the TypeScript files into JavaScript.
npm run build
Once the dependencies are installed, you can run the project in development mode.
- Start: Run the development server with Parcel and watch for changes:
The app will be available at
npm start
http://localhost:3000.
- Build: Build the production-ready version of the app:
npm run build
This will create the optimized build in the dist folder.
The project includes several npm scripts for common tasks:
-
Start: Starts the development server with live reloading:
npm start
-
Build: Build the production-ready application:
npm run build
This project uses the following key dependencies:
- React: The JavaScript library for building user interfaces.
- SWR: React Hooks library for data fetching and caching.
- Axios: Promise-based HTTP client for making requests to external APIs (PokeAPI).
- Tailwind CSS: Utility-first CSS framework for building custom designs.
- Parcel: Web application bundler for fast development.
- TypeScript: TypeScript compiler for building the project.
- PostCSS: Tool for transforming CSS with JavaScript plugins.
- Autoprefixer: A PostCSS plugin to add vendor prefixes to CSS.
- PostCSS Plugins: Various plugins like
postcss-nested,postcss-preset-env, and others for enhancing CSS workflow. - Prettier: Code formatter to maintain consistent code style.
- ESLint: Linter for identifying and fixing problems in JavaScript/TypeScript code.
The application uses the following tools and services:
- React: For building the user interface.
- Parcel: For bundling the application with hot module replacement.
- Tailwind CSS: For styling the app with utility-first CSS classes.
Developed by rmauro@gmail.com.