players

by mounibec

GitHub Readme.md

Tennis players API

CircleCI

To run the app:

Install the lib using npm or yarn

yarn install

To run the app developement mode

yarn start:dev

To run the app production mode

export NODE_ENV=production #default
export NUM_WORKERS=4 #default = 4, means 4 process will be launched in order to handle concurrency
export PLAYERS_API=API_END_POINT
yarn start

To run test

yarn test

Using the API

export API_URL=https://europlayers-api.herokuapp.com_OR_http://localhost:5555

To Retrieve all the players

Using local json :

https://europlayers-api.herokuapp.com/players

curl $API_URL/players

Using remote API :

https://europlayers-api.herokuapp.com/players/remote

curl $API_URL/players/remote

To Retrieve a single player

Using local json :

https://europlayers-api.herokuapp.com/players/17

curl $API_URL/players/17

Using remote API :

https://europlayers-api.herokuapp.com/players/17/remote

curl $API_URL/players/17/remote