Giter Club home page Giter Club logo

pokemonapi's Introduction

pokemonAPI

REST API centered around pokemon to help get me familiar with GraphQL, very much a work in progress

To Run

Once downloaded open up a terminal to directory of project and type

npm start

In a seperate terminal type in the following to start mongo server

mongod

Once done, go to your browser and type in

http://localhost:3000/graphql

API Documentation

As of right now there are only two types of operations you can run

type Query { allPokemon: [Pokemon] } which returns all pokemon in database

type Mutation { createPokemon(input: PokemonInput) : Pokemon }

Which allows you to create a pokemon in the database using a PokemonInput as the input

A pokemon input is defined as followed

input PokemonInput{ name:String! pokedexNumber: Int! eggGroup: [String!]! }

Planning to add more operations

Technologies used

  • MongoDB - Used for database functionality
  • Express - Used for creating API, more specfically handling request endpoints
  • Mongoose - Used for object modeling on our MongoDB data
  • GraphQL - Query language for our API that allows us to fetch exactly what we need, more specfically no under/over fecthing of data. Also has a really cool Type system that lets us structure how we want our datat to be formatted

pokemonapi's People

Contributors

motioncity avatar

Watchers

 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.