GithubHelp home page GithubHelp logo

nodedex's Introduction

Nodedex

A simple NodeJS Pokemon API.

Why?

I needed a simple pokedex API to play around so I made this one using the data provided in this repository https://github.com/fanzeyi/pokemon.json, collected from Bulbapedia.

This project, is a simple express application with a mongodb database. The database will hold the data, the json files, and express provides the corresponding routes.

Requirements

  • Docker

Usage

  • Rename .env-example to .env.
  • Clone the repository, then run docker-compose up -d
  • Access http://localhost:8080 - and explore the API.

Available endpoints

Data

Pokemons sample:

[{
    "_id": "5d317dc803514cb6d7ec78f5",
    "id": 2,
    "name": {
    "english": "Ivysaur",
    "japanese": "フシギソウ",
    "chinese": "妙蛙草"
},
    "type": [
        "Grass",
        "Poison"
    ],
    "base": {
        "HP": 60,
        "Attack": 62,
        "Defense": 63,
        "Sp. Attack": 80,
        "Sp. Defense": 80,
        "Speed": 60
    }
}]

Skills sample:

[{
  "_id": "5d317dc803514cb6d7ec7fa9",
  "accuracy": 100,
  "category": "物理",
  "cname": "手刀",
  "ename": "Karate Chop",
  "id": 2,
  "jname": "からてチョップ",
  "power": 50,
  "pp": 25,
  "type": "Fighting"
}]

Items sample:

[{
    "_id": "5d317dc803514cb6d7ec7c23",
    "name": {
        "japanese": "マスターボール",
        "english": "Master Ball",
        "chinese": "大师球"
    },
    "id": 1
}]

Types sample:

[{
    "_id": "5d317dc803514cb6d7ec8212",
    "english": "Normal",
    "chinese": "一般",
    "japanese": "ノーマル"
}]

Media

Developing

If you want to make any changes, a docker-compose.dev.yml basic file is provided, so you can attach chrome inspector to the docker container.

You can start it with:

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d

Copyright Notice

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Generic License.

https://bulbapedia.bulbagarden.net/wiki/Bulbapedia:Copyrights

Disclaimers

Pokémon © 2002-2019 Pokémon. © 1995-2019 Nintendo/Creatures Inc./GAME FREAK inc. TM, ® and Pokémon character names are trademarks of Nintendo.

No copyright or trademark infringement is intended in using Pokémon content in this repository.

nodedex's People

Contributors

andrevarandas avatar

Stargazers

 avatar

Watchers

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