Git Product home page Git Product logo

pokemonfight-nextjs's Introduction

Pokemon TeamFight

A website mini-game using Next.js along with PokeAPI for fetching Pokémon data

Screenshots

Public website

The game is available at the following url using Netlify: Pokemon TeamFight - Vercel

Getting Started

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.

Game rules

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.

Avilable routes

  • / - 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

Learn More

To learn more about this project, take a look at the following resources:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.