{"id":17335104,"url":"https://github.com/feroult/serverless-sms-demo","last_synced_at":"2026-02-05T07:31:01.279Z","repository":{"id":138800708,"uuid":"85993792","full_name":"feroult/serverless-sms-demo","owner":"feroult","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-12T13:45:20.000Z","size":154,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-20T17:04:50.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feroult.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2017-03-23T20:20:29.000Z","updated_at":"2018-05-18T18:08:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbd722e5-53f0-4366-b753-9a93f7345fc0","html_url":"https://github.com/feroult/serverless-sms-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/feroult/serverless-sms-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feroult%2Fserverless-sms-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feroult%2Fserverless-sms-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feroult%2Fserverless-sms-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feroult%2Fserverless-sms-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feroult","download_url":"https://codeload.github.com/feroult/serverless-sms-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feroult%2Fserverless-sms-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29115520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: 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":[],"created_at":"2024-10-15T15:08:15.425Z","updated_at":"2026-02-05T07:31:01.261Z","avatar_url":"https://github.com/feroult.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless SMS/MMS demo\n\nThis is not an official Google product.\n\nThis is a cobbled-together demo app.\n\nText a given phone number and get a Natural Language sentiment\nanalysis on your text. By which we mean a 😄 or 😔 emoji. \n\nAn end-to-end serverless app using Google Cloud Functions,\nFirebase, BigQuery and Twilio.\n\n## Prerequisites\n- A Google Cloud Platform account\n- A Firebase account\n\n## Installation\n### Google Cloud Functions\n1. ```$ cd cloud-functions```\n1. Copy ```config.js.template``` to ```config.js``` and populate fields.\n1. Download a service account from the Firebase Console and save it\nas ```firebase-service-account.json```.\n1. Download a Google Cloud Platform service account and save it as ```keyfile.json```.\n1. (Optional) Install dependencies\n\n   ```$ npm install```\n#### Deploy the Cloud Function\n```$gcloud alpha functions deploy smsNL --stage-bucket \u003cbucket\u003e --trigger-http```\n\n### Firebase\n- In the ```public/``` directory run ```$ firebase serve``` to\nshow the visualizer locally, or ```$ firebase deploy``` to publish\nto the internet.\n\n### Configure Twilio\n- Set your Twilio number to do a GET request on message receive to\nthe URL of your Cloud Function. Set the optional ```bq``` querystring\nparameter to specify your destination BigQuery table. E.g. ```https://us-central1-my-functions-proj.cloudfunctions.net/smsNL?bq=nl_demo```\n\n### Create BigQuery table\nCreate your table with the following schema, and make sure it has the same\nname as in ```config.js```:\n- message_text\tSTRING\tNULLABLE\t\n- tokens\tSTRING\tNULLABLE\t\n- polarity\tSTRING\tNULLABLE\t\n- magnitude\tSTRING\tNULLABLE\t\n- from_city\tSTRING\tNULLABLE\t\n- from_country\tSTRING\tNULLABLE\t\n- timestamp\tINTEGER\tNULLABLE\t\n  \nDirect any questions to [@bretmcg](https://www.twitter.com/@bretmcg).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferoult%2Fserverless-sms-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferoult%2Fserverless-sms-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferoult%2Fserverless-sms-demo/lists"}