{"id":19336622,"url":"https://github.com/rajtatata/securechat-firebase-backend","last_synced_at":"2026-05-13T13:43:45.365Z","repository":{"id":122535247,"uuid":"203187959","full_name":"rajtatata/securechat-firebase-backend","owner":"rajtatata","description":"Firebase Backend for SecureChat App","archived":false,"fork":false,"pushed_at":"2019-08-20T09:15:54.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-06T10:13:16.762Z","etag":null,"topics":["chat","firebase","functions","messenger","realtimedb"],"latest_commit_sha":null,"homepage":"https://github.com/rajtatata/securechat","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajtatata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-08-19T14:21:20.000Z","updated_at":"2020-10-14T11:36:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e8bd647-d747-4e32-ab51-741b661d7c31","html_url":"https://github.com/rajtatata/securechat-firebase-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajtatata%2Fsecurechat-firebase-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajtatata%2Fsecurechat-firebase-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajtatata%2Fsecurechat-firebase-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajtatata%2Fsecurechat-firebase-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajtatata","download_url":"https://codeload.github.com/rajtatata/securechat-firebase-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240441952,"owners_count":19801793,"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":["chat","firebase","functions","messenger","realtimedb"],"created_at":"2024-11-10T03:11:48.024Z","updated_at":"2026-05-13T13:43:40.339Z","avatar_url":"https://github.com/rajtatata.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure Chat Firebase Backend\n\nThis is the repo of firebase backend of [SecureChat](https://github.com/rajtatata/securechat)\n\n## Installation\n\n- Go to [firebase console](\"https://console.firebase.google.com\") and create a new project or use an existing one\n- Go to Project Settings (click on settings icon \u003cimg src=\"https://ionicons.com/ionicons/svg/md-settings.svg\" width=20 height=20\u003e\u003c/img\u003e next to Project Overview)\n- On the General Tab save the Web API Key\n    - This will be needed to configure the mobile app\n- Go to Service Accounts tab\n    - On Firebase Admin SDK click Generate new private key\n    - Open the downloaded file and copy everything inside and paste it to `/functions/ServiceAccountKey.json` file \n- Create a Realtime Database\n    - Navigate to Database on the left sidebar\n    - Scroll down to Realtime Database and click on Create Database (start in locked mode)\n- Save the database url\n    - Copy the database url link, it should look something like `https://[project-name].firebaseio.com/`\n    - Paste this url at `/functions/index.js` file at `databaseURL`\n    - This will also be needed to configure the mobile app later\n- Allow reading on the database\n    - Navigate to rules and make `read` = `true` and click Publish\n```js \n{\n    \"rules\": {\n        \".read\": true,\n        \".write\": false\n    }\n}\n```\n- Now we just need to deploy this repo to firebase cloud functions\n```bash\nnpm install -g firebase-tools # install firebase-tools if you haven't\nfirebase init \n# follow the instructions, \n# choose firebase cloud functions, \n# choose your newly created existing project, \n# press enter on everything else\nfirebase depoy # after init has finished just deploy to cloud functions in the end\n```\n- Keep track of the firebase functions urls\n    - There should be 4:\n        - `https://[some-location-project-name].cloudfunctions.net/getUserId`\n        - `https://[some-location-project-name].cloudfunctions.net/sendMessage`\n        - `https://[some-location-project-name].cloudfunctions.net/deleteMessage`\n        - `https://[some-location-project-name].cloudfunctions.net/getRandomAvatar`\n    - Keep track of the base url `https://[some-location-project-name].cloudfunctions.net`\n        - You will need it when configuring the mobile app later","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajtatata%2Fsecurechat-firebase-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajtatata%2Fsecurechat-firebase-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajtatata%2Fsecurechat-firebase-backend/lists"}