{"id":23578031,"url":"https://github.com/couchbaselabs/cean-web-chat","last_synced_at":"2025-05-05T23:47:47.131Z","repository":{"id":66961711,"uuid":"48508562","full_name":"couchbaselabs/cean-web-chat","owner":"couchbaselabs","description":"Real-time chat with the CEAN stack and Socket.io","archived":false,"fork":false,"pushed_at":"2016-02-29T04:12:30.000Z","size":30,"stargazers_count":26,"open_issues_count":3,"forks_count":17,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-03-31T00:51:14.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.thepolyglotdeveloper.com/2016/01/create-a-real-time-chat-application-with-the-cean-stack-and-socket-io/","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/couchbaselabs.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}},"created_at":"2015-12-23T19:56:20.000Z","updated_at":"2023-04-20T10:19:20.000Z","dependencies_parsed_at":"2023-03-11T00:28:56.578Z","dependency_job_id":null,"html_url":"https://github.com/couchbaselabs/cean-web-chat","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/couchbaselabs%2Fcean-web-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbaselabs%2Fcean-web-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbaselabs%2Fcean-web-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbaselabs%2Fcean-web-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/couchbaselabs","download_url":"https://codeload.github.com/couchbaselabs/cean-web-chat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252596361,"owners_count":21773842,"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":[],"created_at":"2024-12-26T22:32:26.340Z","updated_at":"2025-05-05T23:47:47.061Z","avatar_url":"https://github.com/couchbaselabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time Chat with the CEAN Stack and Socket.io\n\nThis is an application that makes use of Couchbase, Express Framework, Angular 2 with TypeScript, and Node.js (CEAN) for real-time chat with the assistance of Socket.io.\n\nMessages are sent to and from the Node.js server to the client.  Messages are stored in Couchbase to be accessed during the next session.\n\n## Prerequisites\n\nThere are not many prerequisites required to build and run this project, but you'll need the following:\n\n* Node.js\n* Node Package Manager\n* Couchbase Server 4+\n\n## Installation \u0026 Configuration\n\nCertain configuration in both the application and the database must be done before this project is usable.\n\n### Application\n\nCheckout the latest master branch from GitHub and navigate into it using your Terminal (Mac \u0026 Linux) or Command Prompt (Windows).  Assuming you already have Node.js installed, run the following:\n\n```\nnpm install\n```\n\nThis will install all dependencies as defined in the **package.json** file.\n\n### Database\n\nThis project requires Couchbase 4.0 or higher in order to function because it makes use of the N1QL query language.  With Couchbase Server installed, create a new bucket called **web-chat** or whatever you've named it in your **config.json** file.\n\nWe're not done yet.  In order to use N1QL queries in your application you must create a primary index on your bucket.  This can be done by using the Couchbase Query Client (CBQ).\n\nOn Mac, run the following to launch CBQ:\n\n```\n./Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbq\n```\n\nOn Windows, run the following to launch CBQ:\n\n```\nC:/Program Files/Couchbase/Server/bin/cbq.exe\n```\n\nWith CBQ running, create an index like so:\n\n```\nCREATE PRIMARY INDEX ON `web-chat` USING GSI;\n```\n\nYour database is now ready for use.\n\n## Testing\n\nWith all dependencies installed and Couchbase Server configured, run the following from your Command Prompt or Terminal:\n\n```\nnode app.js\n```\n\nNow when you visit **http://localhost:3000** from your web browser you will be able to use the application.\n\n## Resources\n\nCouchbase - [http://www.couchbase.com](http://www.couchbase.com)\n\nExpressJS - [http://www.expressjs.com](http://www.expressjs.com)\n\nAngular 2 - [https://angular.io](https://angular.io)\n\nNode.js - [http://www.nodejs.org](http://www.nodejs.org)\n\nSocket.io - [http://socket.io](http://socket.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbaselabs%2Fcean-web-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcouchbaselabs%2Fcean-web-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbaselabs%2Fcean-web-chat/lists"}