{"id":22298041,"url":"https://github.com/safwanshamsir99/docker-deployment-restapi-using-r","last_synced_at":"2025-07-24T23:39:18.592Z","repository":{"id":263404670,"uuid":"890284217","full_name":"safwanshamsir99/Docker-Deployment-RESTAPI-using-R","owner":"safwanshamsir99","description":"Learning repositories for deployment of R functions as a RESTful API using Docker","archived":false,"fork":false,"pushed_at":"2024-11-18T10:22:56.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T11:06:10.279Z","etag":null,"topics":["dockerfile","plumber-api","r","rest-api"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/safwanshamsir99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-18T10:05:43.000Z","updated_at":"2024-11-18T10:24:39.000Z","dependencies_parsed_at":"2024-11-21T01:16:09.992Z","dependency_job_id":null,"html_url":"https://github.com/safwanshamsir99/Docker-Deployment-RESTAPI-using-R","commit_stats":null,"previous_names":["safwanshamsir99/docker-deployment-restapi-using-r"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/safwanshamsir99/Docker-Deployment-RESTAPI-using-R","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safwanshamsir99%2FDocker-Deployment-RESTAPI-using-R","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safwanshamsir99%2FDocker-Deployment-RESTAPI-using-R/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safwanshamsir99%2FDocker-Deployment-RESTAPI-using-R/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safwanshamsir99%2FDocker-Deployment-RESTAPI-using-R/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/safwanshamsir99","download_url":"https://codeload.github.com/safwanshamsir99/Docker-Deployment-RESTAPI-using-R/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safwanshamsir99%2FDocker-Deployment-RESTAPI-using-R/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266923038,"owners_count":24006996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dockerfile","plumber-api","r","rest-api"],"created_at":"2024-12-03T17:59:27.816Z","updated_at":"2025-07-24T23:39:18.582Z","avatar_url":"https://github.com/safwanshamsir99.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting Started\n\n- Learning repository for the deployment of R functions as a RESTful API using Docker.\n\n# Development\n## Run API Locally\n```\n\u003e plumber::plumb(file='app/plumber.R')$run()\n```\n\n## File Tree\n```\n├── Dockerfile\n├── README.md\n├── app\n│   └── plumber.R\n├── tests/testthat/\n│   └── test-backend_test.R\n└── functions.R\n```\n### Files Details\n1. `Dockerfile` - Docker file for Docker image building in docker. \n2. `app/plumber.R` - REST API endpoint to be deployed as an R functions from `functions.R` using Docker.\n3. `tests/testthat/test-backend_test.R` - Unit testing for `functions.R`\n4. `functions.R` - Simple functions using R programming language.\n\n# Testing\n## Run all tests (make sure you are in the parent directory)\n```\n# RStudio Console\n\u003e testthat::test_file(\"tests/testthat/test-backend_test.R\")\n```\n\n## Container\n1. Build a Docker container locally\n```bash\ndocker build -t rake .\n```\n2. Run the container locally\n```bash\ndocker run -p 8000:8000 rake\n```\n3. Copy and paste the URL in your browser to open the Swagger UI.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafwanshamsir99%2Fdocker-deployment-restapi-using-r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafwanshamsir99%2Fdocker-deployment-restapi-using-r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafwanshamsir99%2Fdocker-deployment-restapi-using-r/lists"}