{"id":23577648,"url":"https://github.com/couchbaselabs/beersample-node","last_synced_at":"2025-05-05T23:17:12.824Z","repository":{"id":9661549,"uuid":"11600714","full_name":"couchbaselabs/beersample-node","owner":"couchbaselabs","description":"Sample web application using node.js, couchnode and libcouchbase to access couchbase server.","archived":false,"fork":false,"pushed_at":"2023-07-12T03:26:40.000Z","size":356,"stargazers_count":8,"open_issues_count":18,"forks_count":9,"subscribers_count":141,"default_branch":"master","last_synced_at":"2025-05-05T23:17:07.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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.rst","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}},"created_at":"2013-07-23T05:51:09.000Z","updated_at":"2020-03-02T17:43:02.000Z","dependencies_parsed_at":"2023-01-13T15:30:20.888Z","dependency_job_id":null,"html_url":"https://github.com/couchbaselabs/beersample-node","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%2Fbeersample-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbaselabs%2Fbeersample-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbaselabs%2Fbeersample-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbaselabs%2Fbeersample-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/couchbaselabs","download_url":"https://codeload.github.com/couchbaselabs/beersample-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252590635,"owners_count":21772941,"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:29:47.831Z","updated_at":"2025-05-05T23:17:12.793Z","avatar_url":"https://github.com/couchbaselabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Beers and Breweries application using node.\n-------------------------------------------\n\nThis is a sample web application written with the node.js and couchnode \nlibrary.\n\nWe are using couchnode library for accessing couchbase database. Installing\ncouchnode is not straight forward as it uses libcouchbase_ and a C++ binding to\nlibcouchbase. Refer to couchnode_ project for installation instructions.\n\nMake sure that you connect with a valid couchbase server and have the\n``beer-sample`` bucket installed.  `beer_designs.js` sets up view design docs\nused by this application. To setup the additional design documents,\n\n.. code-block:: bash\n\n    node beer.js --setup     // --setup switch will setup the design document.\n\nFollowing is the gist of what the map function does with `beer` documents,\n\n``beer/by_name``::\n\n    function(doc, meta) {\n        if (doc.type \u0026\u0026 doc.type == \"beer\") {\n            emit(doc.name, null);\n        }\n    }\n\nFollowing is the gist of what the map function does with `brewery` documents,\n\n``brewery/by_name``::\n\n    function(doc, meta) {\n        if (doc.type \u0026\u0026 doc.type == \"brewery\") {\n            emit(doc.name, null);\n        }\n    }\n\n\nTo run the webapp, simply do::\n\n    node beer.js\n\nAnd connect to ``localhost:1337``\n\n.. _npm: https://npmjs.org/\n.. _libcouchbase: https://github.com/couchbase/libcouchbase\n.. _couchnode: https://github.com/couchbase/couchnode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbaselabs%2Fbeersample-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcouchbaselabs%2Fbeersample-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbaselabs%2Fbeersample-node/lists"}