This API returns the abilities of a Pokemon given a Pokemon’s name. It is built using Koa - a minimalistic Node Js framework. The API uses an third-party API - Poke API
app: contains application code which includes the controller (pokemon),service,router,middleware, customexception.config: contains the file that holds the environment variables.server: contains tcode that starts the applicationtest: contains the integration and unit tests.env.sample: contains the environment variables
- Node: v10.9.0
- Redis: use for caching the API responses. Make sure you have redis server installed and started. To install redis click here. To start your redis server, run the following command:
redis-server. - Yarn: used for dependency management
- Clone this repo by running this command:
git clone https://github.com/jidesakin/pokemon-api.git - Run
cd pokemon-api && yarn installto install dependencies - Make a copy of the
.env.sampleand rename it to.env - Run
yarn startto start the application
- Run
yarn testto run the tests