This API will provide tennis related information scraped from the ATP Tour website.
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.
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).