17twenty / pokedex.org

Offline-capable Pokédex web site

Home Page:https://www.pokedex.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pokedex.org

An index of Pokémon, built as a client-side JavaScript webapp. Powered by ServiceWorker, PouchDB, virtual-dom, and web workers.

Building up the database via PokéAPI

This site uses data provided by PokéAPI. To build up the database, you'll need to run:

./node_modules/.bin/babel-node bin/build-monsters-database.js
./node_modules/.bin/babel-node bin/build-descriptions-database.js
./node_modules/.bin/babel-node ... # there are several of these

Some of the build scripts pull from src/js/shared/data (which contains some files that I had to build myself by scraping Bulbapedia), whereas the main ones pull from the live PokeAPI. (I never got the local PokeAPI working correctly, so I just pulled from the remote.)

Developing

Start a dev server on localhost:9000:

npm run serve

To disable ServiceWorker:

NODE_ENV=testing npm run serve

Building

npm run build

This will write files to www/.

Credits

Thanks to PokeAPI and Bulbapedia for the Pokémon data, and of course to Nintendo, Game Freak, and The Pokémon Company for making such an awesome series of games.

About

Offline-capable Pokédex web site

https://www.pokedex.org

License:Apache License 2.0


Languages

Language:JavaScript 83.8%Language:CSS 13.3%Language:HTML 2.4%Language:Shell 0.5%