{"id":15800615,"url":"https://github.com/theoomoregbee/botandpusher","last_synced_at":"2025-05-07T15:51:43.814Z","repository":{"id":89634270,"uuid":"133186323","full_name":"theoomoregbee/botAndPusher","owner":"theoomoregbee","description":"Group chat with Pusher and a bot to help with common tasks using Dialogflow","archived":false,"fork":false,"pushed_at":"2018-06-10T17:47:45.000Z","size":997,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-12T01:12:17.168Z","etag":null,"topics":["ai","bot","chat","chatbot","pusher","socket"],"latest_commit_sha":null,"homepage":"https://theo4u.github.io/botAndPusher/","language":"TypeScript","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/theoomoregbee.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":"2018-05-12T21:57:26.000Z","updated_at":"2022-01-11T07:28:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"efbd881d-7843-4568-9506-3870eaabdc7c","html_url":"https://github.com/theoomoregbee/botAndPusher","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"6c8faa94bb2a6aa1ea221fd3d3e0de14dfe4add7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoomoregbee%2FbotAndPusher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoomoregbee%2FbotAndPusher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoomoregbee%2FbotAndPusher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoomoregbee%2FbotAndPusher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theoomoregbee","download_url":"https://codeload.github.com/theoomoregbee/botAndPusher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252911519,"owners_count":21824047,"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":["ai","bot","chat","chatbot","pusher","socket"],"created_at":"2024-10-05T01:03:53.401Z","updated_at":"2025-05-07T15:51:43.787Z","avatar_url":"https://github.com/theoomoregbee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BotAndPusher\n\nDemonstrating how to build a group chat using [Pusher](https://pusher.com/) with an Angular application. Also build a basic chatbot using the [Dialogflow](https://dialogflow.com) conversation platform formerly know as api.ai by Google.\n\n[View tutorial](https://pusher.com/tutorials/group-chat-angular-dialogflow)\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Prerequisites\n\n* [Download](https://nodejs.org/en/download/) Node and npm \n* [angular cli](https://github.com/angular/angular-cli) `npm install -g @angular/cli`\n* `npm install` to install all our node dependencies \n\n\n## Development server\n\n* Update [pusher.service.ts](https://github.com/theo4u/botAndPusher/blob/master/src/app/services/pusher.service.ts) to use your own `APP_KEY`\n* Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n* Run `npm run server` it follows [Twelve-Factor](https://12factor.net/) for handling environment variables listed below\n  * `PUSHER_APP_ID`\n  * `PUSHER_APP_KEY`\n  * `PUSHER_APP_SECRET`\n  * `DIALOG_ACCESS_TOKEN`\n  \ne.g `PUSHER_APP_ID=[appId] node server.js` then `POST http://localhost:2000/message` or `POST http://localhost:2000/join`\n\nor Create a `.env` file with the above variables above, like so\n```sh\nPUSHER_APP_ID=\"APP_ID\"\nPUSHER_APP_KEY=\"APP_KEY\"\nPUSHER_APP_SECRET=\"APP_SECRET\"\nDIALOG_ACCESS_TOKEN=\"CLIENT_ACCESS_TOKEN\"\n```\nand run the below in your terminal\n```sh \nnode server.js\n```\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## Deployment\nUsing `gh-pages` to host our angular app. Run `npm run deploy` to build and send to gh-pages  \n\n\n## Built With\n\n* [Pusher](https://pusher.com/) - APIs to enable devs building realtime features\n* [Dialogflow](https://dialogflow.com/) - is a conversational UX platform enabling brand unique, natural language interactions for devices, applications, and services\n* [Angular](https://angular.io/) - Frontend framework that makes it easy to build  application with the web\n* [Express](https://expressjs.com/) - Used for our APIs server\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoomoregbee%2Fbotandpusher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheoomoregbee%2Fbotandpusher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoomoregbee%2Fbotandpusher/lists"}