{"id":30265026,"url":"https://github.com/cosmos-sajal/whatsapp_clone_backend","last_synced_at":"2026-04-05T21:03:13.261Z","repository":{"id":87941578,"uuid":"328722678","full_name":"cosmos-sajal/whatsapp_clone_backend","owner":"cosmos-sajal","description":":iphone: A backend system that replicates WhatsApp made using django restframework with Firebase's Firestore, Redis, RabbitMQ, PostgreSQL, JWT, and Celery. This is a learning ground for Authentication System, Email Verification flows, creating real time chat application, error and application Logging.","archived":false,"fork":false,"pushed_at":"2021-01-25T16:29:34.000Z","size":691,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T22:48:15.732Z","etag":null,"topics":["celery","django","django-rest-framework","firebase","firestore","jwt-authentication","postgresql","rabbitmq","redis","simplejwt"],"latest_commit_sha":null,"homepage":"","language":"Python","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/cosmos-sajal.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,"zenodo":null}},"created_at":"2021-01-11T16:21:05.000Z","updated_at":"2023-04-03T06:09:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac2faf36-96bd-4ef3-906a-5c841c713859","html_url":"https://github.com/cosmos-sajal/whatsapp_clone_backend","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cosmos-sajal/whatsapp_clone_backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmos-sajal%2Fwhatsapp_clone_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmos-sajal%2Fwhatsapp_clone_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmos-sajal%2Fwhatsapp_clone_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmos-sajal%2Fwhatsapp_clone_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmos-sajal","download_url":"https://codeload.github.com/cosmos-sajal/whatsapp_clone_backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmos-sajal%2Fwhatsapp_clone_backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31449837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["celery","django","django-rest-framework","firebase","firestore","jwt-authentication","postgresql","rabbitmq","redis","simplejwt"],"created_at":"2025-08-15T22:26:19.889Z","updated_at":"2026-04-05T21:03:13.257Z","avatar_url":"https://github.com/cosmos-sajal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# whatsapp_clone_backend\n\n### API Documentation\n- https://documenter.getpostman.com/view/14221347/TVzVibak\n\n### How to do error logging using Sentry?\n- Go to http://sentry.io/\n- Register an account.\n- Create a project under that account (choose the framework, in our case it's Django).\n- Add the below at the top of your settings.py\n```\nimport sentry_sdk\nfrom sentry_sdk.integrations.django import DjangoIntegration\n```\n- Now add this in your secrets.py. This will be provided when you will be creating the project on sentry.\n```\nsentry_sdk.init(\n    dsn=\"dsn_link\",\n    integrations=[DjangoIntegration()],\n    traces_sample_rate=1.0,\n\n    # If you wish to associate users to errors (assuming you are using\n    # django.contrib.auth) you may enable sending PII data.\n    send_default_pii=True\n)\n```\n- Now to rebuild the project, do `docker-compose build \u0026\u0026 docker-compose up`.\n- Try hitting any API by adding print(1/0) as the first line of a view.\n- You will receive a 500 in your response.\n- Check sentry. You should be seeing something like below, if yes then you are done.\n\n![alt text](https://raw.githubusercontent.com/cosmos-sajal/whatsapp_clone_backend/master/reference_images/sentry.png)\n\n### How to do application logging using Scalyr?\n- Go to https://app.scalyr.com/\n- Register your account.\n- Verify your email.\n- Choose setup using docker\n- In your terminal run the following command to pull Scalyr's docker image `docker pull scalyr/scalyr-agent-docker-json`. This will pull an image of Scalyr logger in your system.\n- While setting up on https://app.scalyr.com/help/install-agent-docker you will be asked to create a `api_key.json` in the root folder of your application. In our case it will be whatsapp_clone_backend root itself.\n- Save the following -\n```\n{ \n  api_key: \"your api key\"\n}\n```\nat root (i.e. at whatsapp_clone_backend itself)\n- Then run the following in your terminal to start the docker scalyr agent\n```\ndocker run -d --name scalyr-docker-agent \\\n-v /Users/cosmos/projects/whatsapp_clone_backend/api_key.json:/etc/scalyr-agent-2/agent.d/api_key.json \\\n-v /var/run/docker.sock:/var/scalyr/docker.sock \\\n-v /var/lib/docker/containers:/var/lib/docker/containers \\\nscalyr/scalyr-agent-docker-json\n```\n`Remeber to change /Users/cosmos/projects/whatsapp_clone_backend/api_key.json to your path`\n- Now to rebuild the project, do `docker-compose build \u0026\u0026 docker-compose up`.\n- Hit any API, you should be seeing the logs coming up on scalyr, follow below image to see the logs, if this comes, then you are done.\n![alt text](https://raw.githubusercontent.com/cosmos-sajal/whatsapp_clone_backend/master/reference_images/scalyr1.png)\n\n- Try to use search functionality of scalyr using the screeshot below.\n![alt text](https://raw.githubusercontent.com/cosmos-sajal/whatsapp_clone_backend/master/reference_images/scalyr2.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmos-sajal%2Fwhatsapp_clone_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmos-sajal%2Fwhatsapp_clone_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmos-sajal%2Fwhatsapp_clone_backend/lists"}