{"id":17003672,"url":"https://github.com/lucasinocente/simple-messenger","last_synced_at":"2025-03-23T17:31:17.160Z","repository":{"id":38799163,"uuid":"212508074","full_name":"lucasinocente/simple-messenger","owner":"lucasinocente","description":"WIP! TIP! Trabalho em progresso!","archived":false,"fork":false,"pushed_at":"2023-01-09T11:58:38.000Z","size":348,"stargazers_count":6,"open_issues_count":20,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T22:27:16.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/lucasinocente.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-03T06:07:24.000Z","updated_at":"2023-03-05T00:38:05.000Z","dependencies_parsed_at":"2023-02-08T10:46:43.443Z","dependency_job_id":null,"html_url":"https://github.com/lucasinocente/simple-messenger","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/lucasinocente%2Fsimple-messenger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasinocente%2Fsimple-messenger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasinocente%2Fsimple-messenger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasinocente%2Fsimple-messenger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasinocente","download_url":"https://codeload.github.com/lucasinocente/simple-messenger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245140979,"owners_count":20567484,"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":[],"created_at":"2024-10-14T04:32:11.834Z","updated_at":"2025-03-23T17:31:16.156Z","avatar_url":"https://github.com/lucasinocente.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Messenger\n\nSimple Messenger is a self-hosted tool for communication with your friends :D\n\n---\n\n# How to use\n\n## Install Client Application\n\n1. Install dependencies\n```\nnpm install\n```\n\n2. Create a Firebase Project (https://firebase.google.com)\n\n3. Create an Auth Method at `Authentication \u003e Sign-in method \u003e Email/Password`\n\n4. Enable first option and `e-mail link` too.\n\n5. Create a Realtime Database Project\n\n6. Setup environment variables\n- Copy and rename `.env.example` to `.env.local`\n- Replace `.env.local` content with your configuration\n\n```\nREACT_APP_API_KEY=your-web-api-key\nREACT_APP_AUTH_DOMAIN=your-app.firebaseapp.com\nREACT_APP_DATABASE_URL=https://your-app.firebaseio.com\nREACT_APP_PROJECT_ID=your-app\nREACT_APP_MESSEAGING_SENDER_ID=your-sender-id\nREACT_APP_WEB_PUSH_CERTIFICATES=your-web-push-certificates\nREACT_APP_APP_ID=-your-app-id\n```\n\nTo discovery your key, at Firebase console go to `Settings \u003e Project Settings`.\n\n7. Change your sender id in `firebase-messaging-sw.js` and `manifest.json`.\n\n8. Change your Database rule at `Database \u003e rules` to:\n```\n{\n  \"rules\": {\n    \".read\": true,\n    \".write\": true\n  }\n}\n```\nCAUTION! THIS WILL OPEN YOUR DATABASE! KEEP YOUR KEY SAFE!\n\nVisit https://firebase.google.com/docs/database/security to learn more about security rules.\n\n9. Run the project\n\n```\nnpm start\n```\n\n## Install Admin Application\n\n1. In the client application (http://localhost:3000) create a user with your e-mail\n\n2. Go to `admin` and install dependencies\n\n```\ncd admin\nnpm install\n```\n\n3. In `/admin/set-user-admin.js` line 11 set your e-mail. \n\n4. Download your credentials at Firebase console `Settings \u003e Service accounts` - or [click here](https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk).\n\n5. Change this file for `simple-messenger-oss-firebase-adminsdk.json`. NEVER COMMIT YOUR CREDENTIAL JSON!\n\n6. Run \n```\nnode set-user-admin.js;\n```\n\nOkay, your user now is admin and can see a list of contacts.\n\n## Deploy firebase cloud functions\n\n1. Go to `functions` and install dependencies\n\n```\ncd functions\nnpm install\n```\n\n2. Deploy functions by running `npm run deploy`\n\nAnd you all set to go, notifications will be sent if browser is in background and messages exchange from user and admin.\n\n## Contributing\n\nHelp us to build this:\n\n![](https://lucas-inocente.storage.googleapis.com/1571195790101.photo4988079820080523380.jpg)\n![](https://lucas-inocente.storage.googleapis.com/1571195790002.photo4988079820080523379.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasinocente%2Fsimple-messenger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasinocente%2Fsimple-messenger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasinocente%2Fsimple-messenger/lists"}