Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

AntoniosBarotsis/ATP-API

Repository files navigation

CICD Codecov test coverage

ATP-API

This API will provide tennis related information scraped from the ATP Tour website.

⚠️ Project Discontinued ⚠️

The website is using Cloudflare which protects against scraping so this whole project is impossible to complete and is therefore discontinued. I will keep the repository up however because of all the things that I configured (docker, redis, codecov, CICD, unit testing and mocks) since I know I'm gonna look back to this whenever I decide to build something new in R.

Local Development

Note that RStudio locks some files that are required by Docker which results in the following commands crashing, DO CLOSE RSTUDIO prior to building the image.

docker build -t atp-api . --no-cache --progress=plain
docker run --rm -d -p 8080:8080 atp-api

You can run the tests with devtools::test().

In order to run the app outside of a container you must run Sys.setenv(ENV="PROD") beforehand, note that the cache will not be used outside of a container (unless you are running your own instance).