Skip to content

MrKiplin/pokemon-typescript-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokemon Service API

Service for connecting to the pokemon REST API

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

To get up and running, you will need the following tools.

Code

To write and test code you will need NodeJS and Yarn installed. If your on a Mac, use Homebrew for installation.

brew install node
brew install yarn

Will also need TypeScript installed.

npm install -g typescript

Installing

Change to the root directory and install dependencies.

yarn

Running the tests

Tests can be run globally from the root directory by running yarn test

yarn test

Using the API

Change to the root directory and run yarn start

yarn start

Open http://localhost:<port>/internal/api-docs in your browser to view the swagger documentation. NOTE: swagger.yaml base URL will need to be updated if PORT differs from default i.e 3000.

Port:

Port is set by environmental variable PORT. If none exists then will default to 3000.

Authors

About

Service for connecting to the pokemon REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors