{"id":17668592,"url":"https://github.com/evanshortiss/rhmap-websockets-cloud","last_synced_at":"2025-03-30T13:23:15.917Z","repository":{"id":66153960,"uuid":"100284236","full_name":"evanshortiss/rhmap-websockets-cloud","owner":"evanshortiss","description":"Socket.io server that can be deployed on Red Hat Mobile Application Platform","archived":false,"fork":false,"pushed_at":"2017-08-14T17:21:36.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T15:13:54.379Z","etag":null,"topics":["chat-application","express","mobile","mongodb","rhmap","server","socket-io","socketio","sockets","websocket"],"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/evanshortiss.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":"2017-08-14T15:47:49.000Z","updated_at":"2017-08-17T17:53:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa290ebf-e489-4313-9665-8eb084dcbcbf","html_url":"https://github.com/evanshortiss/rhmap-websockets-cloud","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/evanshortiss%2Frhmap-websockets-cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Frhmap-websockets-cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Frhmap-websockets-cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Frhmap-websockets-cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanshortiss","download_url":"https://codeload.github.com/evanshortiss/rhmap-websockets-cloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246321450,"owners_count":20758643,"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":["chat-application","express","mobile","mongodb","rhmap","server","socket-io","socketio","sockets","websocket"],"created_at":"2024-10-23T23:23:10.384Z","updated_at":"2025-03-30T13:23:15.889Z","avatar_url":"https://github.com/evanshortiss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RHMAP WebSocket Cloud Application\n\n## Introduction\nA WebSocket server that can be deployed on Red Hat Mobile Application Platform\n3.X and 4.X.\n\n## Client Application\nThis server powers a chat application that can be found [here](https://github.com/evanshortiss/rhmap-websockets-client).\n\n\n## Prerequisites\n\n* Node.js v4.4.3 or v6.9.1\n* npm v2.15 or newer\n* MongoDB 2.4 or newer\n* Redis 2.X or newer\n\nIf you need to install node.js then [nvm](https://github.com/creationix/nvm) is\na great way to do so since it will allow you to run multiple node.js versions\nconcurrently on the same machine across different terminal sessions.\n\nInstalling MongoDB and Redis using Docker is probably the best option since you\ncan then easily change versions without need to modify your host machine.\n[Here's a guide](https://developers.redhat.com/blog/2017/06/14/local-development-setup-for-red-hat-mobile-using-docker/) to setup MongoDB and Redis with Docker.\n\n## Running the Server\n\n```\ngit clone $REPO_URL websocket-cloud\ncd websocket-cloud\nnpm install\n```\n\nWhile dependencies are installing you should create a new file inside the cloned\nfolder, call this file `.env` and add the following to it:\n\n```\nFH_USE_LOCAL_DB=true\nFH_MONGODB_CONN_URL=mongodb://localhost:27017/FH_LOCAL\n```\n\nThese variables will be injected into the application on startup by the `dotenv`\nmodule when running locally. They configure the `fh-mbaas-api` module to use the\nlocally running MongoDB.\n\nOnce the `npm install` has completed you can start the server using:\n\n* `npm start` - Start the application\n* `npm run serve` - Start the application with auto-reload. Useful during\ndevelopment when making changes to files.\n\nIf the server started correctly you'll see the following output:\n\n```\n➜ in rhmap-websockets-cloud git:(master [?]) npm start\n\n\u003e rhmap-websockets-cloud@0.1.0 start /Users/eshortis/workspaces/rhmap-websockets-cloud\n\u003e NODE_PATH=. node application.js | bunyan\n\n[2017-08-14T17:15:50.984Z]  WARN: application/52255 on eshortis-OSX.local: loaded vars from .env file - should only happen locally\n[2017-08-14T17:15:52.667Z]  INFO: application/52255 on eshortis-OSX.local: performing startup tasks\n[2017-08-14T17:15:53.151Z]  INFO: sockets/52255 on eshortis-OSX.local: initialising socket.io server\n[2017-08-14T17:15:53.234Z]  INFO: application/52255 on eshortis-OSX.local: application started on 0.0.0.0:8001\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanshortiss%2Frhmap-websockets-cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanshortiss%2Frhmap-websockets-cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanshortiss%2Frhmap-websockets-cloud/lists"}