Giter Club home page Giter Club logo

pokeapi.co's Introduction

pokeapi.co

code style: prettier build status

This repository contains the source code and documentation for pokeapi.co. This website is built on React-Static, a static site generator similar to Gatsby, except unopinionated and with less magic.

Getting Started

Prerequisities

  • Git
  • Node: 10.11.0 or greater
  • A GitHub fork of the repo (for any contributions)
  • A clone of the pokeapi.co repo on your local machine

Installation

  1. cd pokeapi.co to go into the project root.
  2. npm install to install project dependencies.

Running locally

  1. npm run start to start the hot-reloading development server (powered by React-Static).
  2. Go to http://localhost:3000 to view the site in your browser.

Building for production

  1. npm run build to build the production site.
  2. npm run serve to serve the production version of the site on a local test server.

Production files are located in the dist directory.

Contributing

Fork the project

  1. Fork the project to your own GitHub profile.
  2. Clone the forked repository onto your local machine.
  3. git remote add upstream https://github.com/PokeAPI/pokeapi.co to create a remote handle to the upstream repo.
  4. git pull upstream master to ensure you have the latest main code.
  5. git checkout -b branch-name (replacing branch-name with a suitable name) to create a branch for your changes.

Make the change

  1. Follow the "Running locally" instructions.
  2. Save the files and check results in the browser.

Changes to React components in /src will hot-reload. If modifying the /alerts.json file or files in the /src/docs/ directory, you will need to restart the dev server before changes will be visible.

Test the change

If possible, test any visual changes in all latest versions of common browsers, on both desktop and mobile.

Push it

  1. git add -A to stage your changed files.
  2. git commit -m "My message" (replacing My message with a commit message, such as "Fix header logo on Android") to commit your changes. While not critically important, try to follow the guidelines in How to Write a Git Commit Message.
  3. git push my-fork-name branch-name to push your changes to your own GitHub repository.
  4. Go to the pokeapi.co GitHub repo and you should see your recently pushed branches.
  5. Follow GitHub's instructions to submit a pull request.
  6. Describe the changes you made in the body of the PR. If possible, include screenshots of visual changes.

pokeapi.co's People

Contributors

naramsim avatar cmmartti avatar kronopt avatar emw3 avatar tdmalone avatar triangulum avatar phalt avatar sargunv avatar thidinh21 avatar henriqueartur avatar sirskaro avatar daneah avatar deleca7755 avatar fantasyteddy avatar gabrielsroka avatar hrkings avatar henrikac avatar holly-hacker avatar jtwotimes avatar juliano avatar usagi-f avatar mtslzr avatar mattxwang avatar rnegron avatar rocco avatar rdavid1099 avatar veteranovis avatar vitalyavolyn avatar ajimenezucla avatar beastmatser avatar

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.