alanfeng99 / pokemon-go-diary

restfulapi to get pokemon iv and other details with a delightful webUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pokemon Diary

Restfulapi server for getting your pokemon's IV, CP and other details including height, weight and nickname in JSON with a delightful webUI

Features

  • Simple restful api to query pokemon data
  • WebUI to show pokemon details
  • Dockerfile for fast deployment
  • Login with google account
  • Login with PTC account
  • Sort by condition
  • WebUI Refactor

Install

  1. npm install
  2. npm install -g webpack
  3. npm run all

Usage

  • to acces the UI page
    • http://localhost:8887/
  • to call the backend api
    • curl -H "Content-Type: application/json" -X POST -d '{"username":"xxxxx", "password": "xxxxx"}' http://localhost:8887/pokemon/list

Develop UI

npm run ui-dev

Build UI

npm run ui-build

Deploy with Docker

  1. docker build -t pkm-journal:latest .
  2. docker run -d -p 9999:8887 --name=pokemon-journal pkm-journal:latest

Screenshot

Demosite

http://ilcic.synology.me:9696/

About

restfulapi to get pokemon iv and other details with a delightful webUI

License:MIT License


Languages

Language:JavaScript 98.3%Language:HTML 0.8%Language:CSS 0.7%Language:Shell 0.2%