{"id":13671840,"url":"https://github.com/xesrevinu/ddx","last_synced_at":"2025-04-27T18:31:57.408Z","repository":{"id":88693585,"uuid":"43161765","full_name":"xesrevinu/ddx","owner":"xesrevinu","description":"koa+react+redux","archived":false,"fork":false,"pushed_at":"2016-07-29T11:18:15.000Z","size":62369,"stargazers_count":127,"open_issues_count":0,"forks_count":30,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-19T06:25:43.619Z","etag":null,"topics":[],"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/xesrevinu.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-09-25T16:52:50.000Z","updated_at":"2024-03-06T05:15:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1bb5dcf8-8067-4fde-9282-b88225b4ae53","html_url":"https://github.com/xesrevinu/ddx","commit_stats":null,"previous_names":["piggy-kee/ddx","xiaokeket/ddx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xesrevinu%2Fddx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xesrevinu%2Fddx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xesrevinu%2Fddx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xesrevinu%2Fddx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xesrevinu","download_url":"https://codeload.github.com/xesrevinu/ddx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187348,"owners_count":21549621,"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-08-02T09:01:20.091Z","updated_at":"2025-04-27T18:31:52.395Z","avatar_url":"https://github.com/xesrevinu.png","language":"JavaScript","readme":"# Ddx\n\n这是一个简单的日记web程序，记录，分享自己喜欢的文字，音乐，照片\n总之还有很多问题，我会继续完善，也会尝试多增加点功能，主要是前端react，学习嘛，就是得折腾\n\n## 主要使用到的技术\n- React.js\n  - webpack\n  - redux\n  - react-router\n- Node.js\n  - koa\n- Mongodb\n\n还要感谢以下\n- css-modules\n- cssnext\n- postcss\n- babel\n- .....\n(这个b装得可以)\n\n## Demo\n [看这里](http://121.42.195.128/)\n\n## 怎样启动？\n1. 依赖mongodb,所以您需要先安装mongodb，并且启动,***建立一个数据库***\n2. 进入项目目录，执行```bash npm install  // 也可以使用cnpm install 来安装 ```\n3. 😎进入下一步\n\n### 开发模式\n- 服务端自动重启\n- 前端监控项目文件，有任何改动则会自动重启，无需浏览器自动F5。\n\n***\n\n服务端：\n```bash\nnpm run server-watch\n```\n\n前端：\n```bash\nnpm run client-watch\n```\n\n### 发布模式\n- 服务端使用pm2 or 其他等等启动 (我这里仅仅是很简单的启动而已)\n- 前端各种编译打包压缩代码。\n\n***\n\n服务端：\n```bash\nnpm run server-start\n```\n前端：\n```bash\nnpm run client-build\n```\n\n## 第一次运行\n第一次数据库是没有东西的所有我们需要来点初始数据看看效果\n新建两个命令行窗口，第一个窗口执行\n如果你是想看 ***打包压缩*** 后的版本\n先编译前端项目\n```bash\nnpm run client-build\n```\n然后运行服务端\n```base\nnpm run server-start init\n```\n这里init是执行一个js写点初始数据到数据库里，***以后不用加!!***\n打开浏览器localhost:3000\nok 这就是你的第一次😀。\n\n下面是你想进行开发了，自动重启啊什么的\n把前面那些统统关掉\n```bash\nnpm run client-watch\n```\n第二个窗口执行\n如果不开发node端，可以用server-start\n```bash\nnpm run server-watch\n```\n各方面细节还不是很完善，css-modules第一次使用，纯属乱用，导致现在写css比较难受。\n本来html、css很渣，所有页面都是乱拼出来的。\nChrome版本 48.0.2547.0 dev (64-bit)\n\nwebpack打包后:\n- js有1.54MB\n- css有18.4KB\n\ngzip压缩后:\n- js有460.82KB\n- css有5.06KB\n\n## TODOS\n- [x] 发表文章\n- [x] 浏览文章\n- [x] 评论文章\n- [x] 实时通知新评论，新文章\n- [] 上传图片\n- [] 上传音乐\n- [] 个人页面\n- [] 注册\n- [] .....\n\n最后，以上开发都在Mac上进行。 windows能try就try吧😂......\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxesrevinu%2Fddx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxesrevinu%2Fddx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxesrevinu%2Fddx/lists"}