A website mini-game using Next.js along with PokeAPI for fetching Pokémon data
The game is available at the following url using Netlify: Pokemon TeamFight - Vercel
To run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Hot refresh is enabled.
Every page will be static rendered at reload.
To run the production server you must build the Next.js project:
npm run build
# or
yarn build
Afterwards you can start the server:
npm start
# or
yarn start
Open http://localhost:3000 with your browser to see the result.
You must create a team of six pokemons, and the team must have a name as well.
After that, the route TEAM FIGHTING will be enabled on the homepage.
By clicking that, you will be transported to the /team/fight
route, showing the summary of the two teams.
The button THE BATTLE BEGINS will start a Pokemon battle between your team and a randomly generated team, for the other side.
The team with more base experience will win the match.
/
- redirect to/home
/home
- the hub for going at/team/create
and/team/fight
/team
- redirect to/home
/team/create
- page where you can create your team of six pokemons/team/fight
- page where you can let your pokemon fight against a random-generated team (available when the player team is created. A fallback to/home
is applied)other routes
- 404 page
To learn more about this project, take a look at the following resources:
- Figma Draft - UI/UX Design
- Next.js - learn about Next.js.
- Netlify - explore Netlify for serverless deployments.