Api for serving pokemon data for a fighting game
You will need a mongoDB database in order to deploy this project
- clone the repository
- run: npm install to install dependencys
- add a .env file and insert your mongoDB connection data (use .env.sample as a guide)
- run: npm run populate to fetch all needed data from pokeapi and store it in your mongoDB
- run: npm start
returns pokemon from the db
- limit: amount of pokemon to fetch
- offset: index offset
- name: partial filter pokemon by name
- type: filter pokemon by type
returns pokemon with specific id
returns info file of specific pokemon info must be one of [base, name, type]
returns all possible types of our pokemon
returns the record of game results
insert a game result into the record
- winner: ObjectId of a pokemon
- looser: ObjectId of a pokemon
- turns: Number
- winnerScore: Number
- looserScore: Number