{"id":24010956,"url":"https://github.com/lonalore/nodejs","last_synced_at":"2025-04-15T04:58:13.660Z","repository":{"id":26909471,"uuid":"30371308","full_name":"lonalore/nodejs","owner":"lonalore","description":"e107 (v2) plugin - It provides an API that other plugins can use to add realtime capabilities to e107 (v2), specifically enabling pushing updates to open connected clients.","archived":false,"fork":false,"pushed_at":"2019-09-24T08:55:36.000Z","size":112,"stargazers_count":2,"open_issues_count":4,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T04:57:55.469Z","etag":null,"topics":["api","e107","e107-plugin","nodejs","notification","notification-api","plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lonalore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-05T18:33:01.000Z","updated_at":"2019-09-24T08:55:38.000Z","dependencies_parsed_at":"2022-09-01T16:10:37.175Z","dependency_job_id":null,"html_url":"https://github.com/lonalore/nodejs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonalore%2Fnodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonalore%2Fnodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonalore%2Fnodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonalore%2Fnodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lonalore","download_url":"https://codeload.github.com/lonalore/nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249010210,"owners_count":21197797,"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":["api","e107","e107-plugin","nodejs","notification","notification-api","plugin"],"created_at":"2025-01-08T04:43:28.691Z","updated_at":"2025-04-15T04:58:13.640Z","avatar_url":"https://github.com/lonalore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js integration with e107 v2\n\n[![Join the chat at https://gitter.im/lonalore/nodejs](https://badges.gitter.im/lonalore/nodejs.svg)](https://gitter.im/lonalore/nodejs?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nThis plugin integrates Node.js with e107 v2. It provides an API that other plugins can use to add realtime capabilities to e107 (v2), specifically enabling pushing updates to open connected clients.\n\n## Install Node.js\n\n### Install nodejs from aptitude package manager:\n```\nsudo apt-get install python-software-properties\nsudo add-apt-repository ppa:chris-lea/node.js\nsudo apt-get update\n```\n\nAs of Node.js v0.10.0, the nodejs package from Chris Lea's repo includes both npm and nodejs-dev. So just...\n```\nsudo apt-get install nodejs\n```\n\n### Install required Node.js modules with the Node Package Manager (NPM)\n\nInstall e107 Node.js integration plugin and go to the directory where node.js integration is installed.\n```\ncd path/to/e107/e107_plugins/nodejs\n```\n\nMake sure you are in the nodejs plugin directory - NPM needs the package.json file that comes with the nodejs plugin to install the right modules.\n```\nsudo npm install\nsudo npm install socket.io\nsudo npm install request\nsudo npm install express\nsudo npm install connect\n```\n\nNOTE: Some have found the need to target versions for the Express and Connect node modules:\n```\nsudo npm --node-version=0.4.12 install express\nsudo npm --node-version=0.4.12 install connect\n```\n\nOPTIONAL: install node-gyp, so that the ws package is faster.\n```\nsudo npm install -g node-gyp\n```\n\n### Create a 'nodejs.config.js' file in your nodejs plugin directory.\n\nRead the 'nodejs.config.js.example' file. Set debug to false when you are happy with your setup.\n\n### Run the node server with the command: \n```\nnode server.js\n```\n\nAs long as you have 'debug: true' in your configuration file, you'll see lots of helpful messages.\n\n### Testing\n\nA simple test to determine if the plugin is working is to monitor the terminal window or ssh terminal as you broadcast notification messages.\n\n\n## Support on Beerpay\nHey dude! Help me out for a couple of :beers:!\n\n[![Beerpay](https://beerpay.io/lonalore/nodejs/badge.svg?style=beer-square)](https://beerpay.io/lonalore/nodejs)  [![Beerpay](https://beerpay.io/lonalore/nodejs/make-wish.svg?style=flat-square)](https://beerpay.io/lonalore/nodejs?focus=wish)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonalore%2Fnodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flonalore%2Fnodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonalore%2Fnodejs/lists"}