{"id":14067823,"url":"https://github.com/Kohze/fireData","last_synced_at":"2025-07-30T02:31:42.044Z","repository":{"id":98861066,"uuid":"79661114","full_name":"Kohze/fireData","owner":"Kohze","description":"Firebase + R ","archived":false,"fork":false,"pushed_at":"2020-10-13T23:25:49.000Z","size":739,"stargazers_count":75,"open_issues_count":3,"forks_count":16,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-13T07:13:52.629Z","etag":null,"topics":["2017","firebase","gsoc","package","r"],"latest_commit_sha":null,"homepage":null,"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/Kohze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-01-21T17:31:30.000Z","updated_at":"2024-04-01T14:41:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"2be26a1d-f771-437d-935e-c11852ebb10e","html_url":"https://github.com/Kohze/fireData","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kohze%2FfireData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kohze%2FfireData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kohze%2FfireData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kohze%2FfireData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kohze","download_url":"https://codeload.github.com/Kohze/fireData/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228075608,"owners_count":17865503,"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","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":["2017","firebase","gsoc","package","r"],"created_at":"2024-08-13T07:05:47.922Z","updated_at":"2024-12-04T08:31:13.201Z","avatar_url":"https://github.com/Kohze.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"![fireData](http://frapbot.kohze.com/fireData/topImage6.jpg)\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/Kohze/fireData/master/LICENSE.txt)\n[![Build Status](https://travis-ci.org/Kohze/fireData.svg?branch=master)](https://travis-ci.org/Kohze/fireData)\n[![codecov](https://codecov.io/gh/Kohze/fireData/branch/master/graph/badge.svg)](https://codecov.io/gh/Kohze/fireData)\n\n\n**Project Title:** FireData: Connecting R to Google Firebase\n\n---\n\nFireData integrates R Datascience with the abilities and possibilities of the Google Firebase Framework.\n\nFirebase makes it possible to exchange in real-time information in the Cloud and thereby opening the R language to IoT hardware/data processing. Other than that it is also immensely useful for shiny application to integrate Social Authentications and persistent data \u0026 uploads.\n\nThis package was created within the framework of Google Summer of Code 2017 and 2018.\n\n![fireData](http://frapbot.kohze.com/fireData/setup2.jpg)\n\n**Database Setup:**\n- visit https://firebase.google.com/\n- login and enter the \"console\"\n- add new project\n- find the API keys at the \"overview\" page clicking on add firebase to web-app\n- certain functions requires OAuth 2.0 access which needed client_id and client_secret, these can be found from the [google developer console](https://console.developers.google.com/apis/credentials)\n\n**R Package Setup:**\n\n```\nif (!require(\"devtools\")) install.packages(\"devtools\")\ndevtools::install_github(\"Kohze/fireData\")\n\nlibrary(fireData)\n```\n\n![examples](http://frapbot.kohze.com/fireData/examples2.jpg)\n\n**Authentification**\n\n- using anonymous login\n\n```r\ntoken \u003c- anonymous_login(project_api = \"AIzaSyAjZLO9-CRV3gObpwdFz-k8AiTOxHSBmdc\")\n\ntoken$idToken\n```\n\n**General Functions:**\n\n- uploading a data.frame:\n\n```upload(x = mtcars, projectURL = \"https://firedata-b0e54.firebaseio.com/\",  directory = \"main\")```\n\n- patching a data.frame:\n\n```patch(x = mtcars, projectURL = \"https://firedata-b0e54.firebaseio.com/\",  directory = \"main/-KxwWNTVdplXFRZwGMkH\")```\n\n- putting a data.frame:\n\n```put(x = mtcars, projectURL = \"https://firedata-b0e54.firebaseio.com/\",  directory = \"main/-KxwWNTVdplXFRZwGMkH\")```\n\n- download a data.frame:\n\n```download(projectURL = \"https://firedata-b0e54.firebaseio.com/\", fileName = \"main/-KxwWNTVdplXFRZwGMkH\")```\n\n- register a new user\n\n```createUser(projectAPI = \"AIzaSyAjZLO9-CRV3gObpwdFz-k8AiTOxHSBmdc\", email = \"your@email.com\", password = \"12341234\" )```\n\n- create token for authenticated requests (can be used for the token argument of upload/download)\n\n```auth(projectAPI = \"AIzaSyAjZLO9-CRV3gObpwdFz-k8AiTOxHSBmdc\", email = \"robin@kohze.com\", password = \"12341234\")```\n\n- reset user password\n\n```resetPassword(projectAPI = \"AIzaSyAjZLO9-CRV3gObpwdFz-k8AiTOxHSBmdc\", email = \"useYourOwn@email.com\")```\n\n- backup the database and save as .json\n\n```dataBackup(projectURL = \"https://firedata-efa5a.firebaseio.com\", secretKey = \"2bYA6k72wKna90MqPGa6yuMG7jAysoDJZwJqYXsm\", \"test.json\")```\n\n\n\n\n\n![fireData](http://frapbot.kohze.com/fireData/related2.jpg)\n\nfireData is already integrated into a several projects.\n\n- SpatialMaps: A spatial proteomics platform that utilizes firebase as cross platform database.\n\n- Cryptotrade-hq bot: A simple data collector (with shiny) that uses firebase for secure storage of API keys.\n\n\n![fireData](http://frapbot.kohze.com/fireData/development2.jpg)\n\nWe are currently planning to add the new Cloud Firebase database and enhance the integration into R web applications.\n\n---\n\n**Aknowledgements:**\n\nI hereby want to thank my GSOC mentors L. Pedraza, S. Schmidt for their project support and especially L. Gatto for his insights and experience to make this package a reality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKohze%2FfireData","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKohze%2FfireData","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKohze%2FfireData/lists"}