{"id":32350537,"url":"https://github.com/coderayzhang/cloud-note","last_synced_at":"2025-10-24T08:46:42.746Z","repository":{"id":105600904,"uuid":"118255584","full_name":"CodeRayZhang/Cloud-Note","owner":"CodeRayZhang","description":"基于分布式的云笔记（参考某道云笔记），数据存储在redis与hbase中","archived":false,"fork":false,"pushed_at":"2018-01-20T17:06:56.000Z","size":3389,"stargazers_count":98,"open_issues_count":0,"forks_count":43,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-28T04:53:15.008Z","etag":null,"topics":["hbase","hdfs","linux","nginx","redis","ssm","tomcat","web"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/CodeRayZhang.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-01-20T15:35:03.000Z","updated_at":"2025-03-12T06:46:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d0d767d-f990-4be9-b551-129cbcec3448","html_url":"https://github.com/CodeRayZhang/Cloud-Note","commit_stats":null,"previous_names":["coderayzhang/cloud-note"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeRayZhang/Cloud-Note","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FCloud-Note","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FCloud-Note/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FCloud-Note/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FCloud-Note/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeRayZhang","download_url":"https://codeload.github.com/CodeRayZhang/Cloud-Note/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeRayZhang%2FCloud-Note/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280768602,"owners_count":26387528,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hbase","hdfs","linux","nginx","redis","ssm","tomcat","web"],"created_at":"2025-10-24T08:46:41.045Z","updated_at":"2025-10-24T08:46:42.720Z","avatar_url":"https://github.com/CodeRayZhang.png","language":"Java","readme":"# 基于分布式的云笔记（参考某道云笔记），数据存储在redis与hbase中\n# 如出现问题，可参考[博客](http://blog.csdn.net/u011254180/article/details/79117652)内容\n\n## 一、产品简述\n云笔记是在吸收了多年的运营数据，经过精确的大数据分析指导需求模型的建立从而实现的，云笔记通过大数据分布式存储解决方案解决了笔记信息量膨胀的问题，并且通过分布式搜索引擎服务以及数据分析推荐平台的建立提升了用户搜索分享比较的能力，系统可以有针对性的提供用户其他人分享的笔记资源扩充自己的知识行囊，并且在分享之外通过每个人的配额管理实现了非分享笔记的安全私有化，保证了用户的私人空间。通过分布式解决方案用户空间被设计为无限大。业务端同时提供了windows客户端，更加贴近用户的使用习惯，并且数据平台支持移动设备的接入，达到无处不学习，无处不笔记的效果。\n\n## 二、技术关键词\nweb平台：\n- **nginx,keepalived+lvs ,tomcat,springmvc,jquery,fckeditor,mybatis,**\n- **hadoop(hdfs,mapreduce),hbase,zookeeper,thrift,mysql,redis**\n\n客户端：\n- **windows**\n\n## 三、设计理念\n将云笔记信息分别存储在redis和hbase中。\n\n**redis**（缓存）：存储每个用户的笔记本信息\n\n**hbase**（持久层）：存储用户的笔记本信息、笔记本下的笔记列表、笔记具体信息。\n\n## 四、库表设计\n\n#### 1.笔记本\n1.1 **redis**\n\n key     | value\n-------- | ---\nloginName | List\u0026lt;String\u003e\n\nList\u0026lt;string\u003e: List\u0026lt;笔记本的rowkey | 笔记本名称 | 时间戳 | status\u003e\n\n例子： List\u0026lt;senfeng_134223232343|aaaddd|1401761871307|0\u003e\n\n1.2 **hbase**\n\n表名：nb\n\nrowkey ：  loginName_ timestamp\n\n列簇1：noteBookInfo（nbi）：\n\n列：\n- notebookname（nbn）:笔记本名称\n- createTime（ct）:创建时间\n- status（st）:状态\n- noteList（nl）：笔记本下的笔记列表，是个json串（noteRowKey|name| createTime| status）  \n\n例子\tsenfeng403_1321312312\t学习资料\t123123123\t1\t{{“json1”}，{“json2”}}\n\n#### 2.笔记\n2.1**hbase**\n\n表名：n\n\nRowKey ： loginName_timestamp\n\n列簇1:noteInfo(ni)：笔记信息\n\n列： \n- notename（nn）：笔记的名字\n- createTme（ct）：创建时间\n- status（st）：笔记状态    \n\n列簇2：ContentInfo（ci）：笔记本容信息\n\n列：\n- content（c）：笔记内容\n\n例子\tsenfeng_1323242113\t基础知识\t1323242113\t0\t基础知识内容\n\n3.创建hbase表语句\n```\ncreate 'nb','nbi'\ncreate 'n','ni','ci'\n```\n\n## 五、功能描述\n### 1.笔记本功能\n#### 1.1创建笔记本：\n点击全部笔记本右侧的\"+\"号，会出现填写笔记本名字的对话框\n![Image text](pic/picture/1.png)\n填写笔记名字后，点击创建，笔记本创建成功\n![Image text](pic/picture/2.png)\n\n#### 1.2修改笔记本：\n双击想要修改的笔记本，修改“笔记本”名字。\n![Image text](pic/picture/3.png)\n\n#### 1.3删除笔记本：\n当“笔记本”下不存在笔记内容时，单击想要删除的笔记本，会出现“X”号。\n![Image text](pic/picture/4.png)\n点击“X”号，会提示是否删除笔记本，点击“是”，笔记本将不进入回收站，直接删除。\n![Image text](pic/picture/5.png)\n如“笔记本”下存在“笔记”，需要将笔记清空后方可删除“笔记本”。\n\n### 2.笔记本功能\n#### 2.1新建笔记：\n点击相应笔记本，会在右侧显示该“笔记本”下的所有笔记，点击相应笔记右侧的“+”号，创建“笔记名字”，填写完毕，点击保存，笔记创建成功。\n![Image text](pic/picture/6.png)\n\n#### 2.2新建或修改笔记内容：\n点击对应的“笔记”，会在内容栏出现“对应笔记”的内容， “添加”或“修改”笔记内容。\n![Image text](pic/picture/7.png)\n编辑结束，点击保存，笔记保存成功；不点击保存不予保存。\n![Image text](pic/picture/8.png)\n\n#### 2.3笔记分享：\n点击相应笔记，会出现笔记状态，有“分享按钮”时为未公开的笔记。\n![Image text](pic/picture/9.png)\n点击“分享按钮”，会将笔记变为分享状态（分享后的笔记不能取消分享），此时笔记分享成功。\n![Image text](pic/picture/10.png)\n\n#### 2.4删除笔记：\n点击相应笔记，在笔记标题右侧有“X”按钮，点击“X”按钮，会提示“是否删除此笔记？”，点击“是”，笔记进入“回收站”。\n![Image text](pic/picture/11.png)\n\n### 3.共享笔记查询功能\n#### 3.1查询共享笔记：\n在搜索共享笔记栏中，输入想要搜索的共享笔记关键字，会在“笔记栏”查询出共享笔记中符合查询条件的所有笔记。\n![Image text](pic/picture/12.png)\n\n#### 3.2收藏共享笔记：\n选中想要收藏的笔记，会在内容栏出现笔记内容，点击内容栏右侧的“收藏”按钮，会弹出“选择收藏笔记本”对话框，选择相应的笔记本，并点击“确定”，笔记收藏成功，笔记收藏后为共享状态，并且可以在本地“编辑”和“保存”。\n![Image text](pic/picture/13.png)\n\n### 4.回收站\n#### 4.1恢复笔记：\n点击“回收站”，会在笔记栏列出已经删除的 “笔记”，点击想要恢复的 “笔记”，点击标题右侧的“恢复”按钮，会弹出提示框，提示想要恢复到哪个“笔记本”，选择笔记本，点击回复，即可恢复。\n![Image text](pic/picture/14.png)\n\n#### 4.2彻底删除笔记：\n点击“回收站”，会在笔记栏列出已经删除的 “笔记”，点击想要彻底删除的 “笔记”，点击标题右侧的“垃圾箱”按钮，会弹出提示框，提示确定要彻底删除笔记吗，点击是，笔记彻底删除。\n![Image text](pic/picture/15.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderayzhang%2Fcloud-note","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderayzhang%2Fcloud-note","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderayzhang%2Fcloud-note/lists"}