pokedex.org

Offline-capable Pokédex web site (unmaintained)

Github星跟蹤圖

Pokedex.org project unmaintained

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

See the Introducing Pokedex.org blog post for details on the architecture.

Developing

First, be sure to install dependencies:

npm install

Then 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/.

Bumping the ServiceWorker version

The ServiceWorker version is tied to the package.json version. So you can bump it by simply doing:

npm version patch

Building up the database via PokéAPI

Note: you don't need to build up the database to start developing; these are just steps to generate the database files (src/assets/*.txt) from scratch.

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.)

Debugging

You can add ?highPerfAnims=1 to the URL to force high-performance animations to run. (Normally they are disabled for Firefox and Android <5.)

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.

主要指標

概覽
名稱與所有者nolanlawson/pokedex.org
主編程語言JavaScript
編程語言JavaScript (語言數: 4)
平台
許可證Apache License 2.0
所有者活动
創建於2015-10-25 17:26:14
推送於2023-05-14 22:26:21
最后一次提交2018-09-06 10:58:59
發布數17
最新版本名稱v9.0.0 (發布於 2017-03-03 12:30:15)
第一版名稱v1.0.10 (發布於 )
用户参与
星數2.3k
關注者數48
派生數325
提交數308
已啟用問題?
問題數56
打開的問題數31
拉請求數19
打開的拉請求數18
關閉的拉請求數15
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?