{"id":13493622,"url":"https://github.com/shen100/mili","last_synced_at":"2025-05-15T07:05:17.971Z","repository":{"id":43913929,"uuid":"97898524","full_name":"shen100/mili","owner":"shen100","description":"mili 是一个开源的社区系统，界面优雅，功能丰富😛","archived":false,"fork":false,"pushed_at":"2020-09-04T22:43:46.000Z","size":349619,"stargazers_count":2935,"open_issues_count":26,"forks_count":683,"subscribers_count":146,"default_branch":"master","last_synced_at":"2025-04-14T11:13:45.738Z","etag":null,"topics":["blog","cms","javascript","nestjs","nodejs","typeorm","typescript","vue"],"latest_commit_sha":null,"homepage":"https://www.nodejs123.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shen100.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-21T02:42:54.000Z","updated_at":"2025-04-03T16:29:43.000Z","dependencies_parsed_at":"2022-09-26T17:50:40.924Z","dependency_job_id":null,"html_url":"https://github.com/shen100/mili","commit_stats":null,"previous_names":["shen100/golang123"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen100%2Fmili","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen100%2Fmili/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen100%2Fmili/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen100%2Fmili/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shen100","download_url":"https://codeload.github.com/shen100/mili/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292040,"owners_count":22046426,"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":["blog","cms","javascript","nestjs","nodejs","typeorm","typescript","vue"],"created_at":"2024-07-31T19:01:17.169Z","updated_at":"2025-05-15T07:05:12.959Z","avatar_url":"https://github.com/shen100.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"mili   \n=\n\n**mili**是一个开源的社区系统，界面优雅，功能丰富。\n已在[米粒网](https://www.golang123.com) 得到应用，你完全可以用它来搭建自己的社区。**mili**的前端使用**vue**、**iview**等技术来开发，后端使用**typescript**、**nodejs**、**nestjs**、**typeorm**等技术来开发。 \n\n## 🎆 系统截图\n\u003cimg src=\"https://img.golang123.com/upload/img/2020/2/1581129636269.gif?v=1\" width=\"1000\" alt=\"\"/\u003e\n\n## 👉 依赖的软件\n| 软件 | 版本|  \n|:---------|:-------:|\n| nginx  |  1.17.1 |\n| node.js     |  8.4.0 |\n| mysql  |  5.6.35 |\n| redis  |  4.0.1 |\n\n## ⚙️ 配置\n### 配置hosts\n127.0.0.1 local.nodejs123.com  \n\n### 配置nginx \n请参考如下配置, 请修改日志目录\n\n```\nupstream nodejsAPI {\n    server 127.0.0.1:9905;\n}\n\nupstream nodejsStatic {\n    server 127.0.0.1:9906;\n}\n\nserver {\n    listen       80;\n    server_name dev.golang123.com;\n\n    access_log /your/path/logs/golang123.access.log;\n    error_log /your/path/logs/golang123.error.log;\n\n    location /js  {\n        proxy_pass  http://nodejsStatic;\n        proxy_set_header   Host             $host;\n        proxy_set_header   X-Real-IP        $remote_addr;\n        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;\n    }\n\n    location /styles  {\n        proxy_pass  http://nodejsStatic;\n        proxy_set_header   Host             $host;\n        proxy_set_header   X-Real-IP        $remote_addr;\n        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;\n    }\n\n    location /images  {\n        proxy_pass  http://nodejsStatic;\n        proxy_set_header   Host             $host;\n        proxy_set_header   X-Real-IP        $remote_addr;\n        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;\n    }\n\n    location /fonts  {\n        proxy_pass  http://nodejsStatic;\n        proxy_set_header   Host             $host;\n        proxy_set_header   X-Real-IP        $remote_addr;\n        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;\n    }\n\n    location /sockjs-node {\n        proxy_pass http://nodejsStatic;\n        proxy_read_timeout 3600s;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n    }\n\n    location /webpack-dev-server {\n        proxy_pass  http://nodejsStatic;\n        proxy_set_header   Host             $host;\n        proxy_set_header   X-Real-IP        $remote_addr;\n        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;\n    }\n\n    location /api/v1 {\n        proxy_pass  http://nodejsAPI;\n        proxy_set_header   Host             $host;\n        proxy_set_header   X-Real-IP        $remote_addr;\n        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;\n        proxy_set_header   x-forwarded-proto  https;\n    }\n    \n    location / {\n        proxy_pass  http://nodejsAPI;\n        proxy_set_header   Host             $host;\n        proxy_set_header   X-Real-IP        $remote_addr;\n        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;\n        proxy_set_header   x-forwarded-proto  https;\n    }\n}\n```\n\n### 配置数据库\n请修改{项目目录}/src/config/cfg.default.ts 文件中mysql的配置\n```\nexport default {\n    db: {\n        type: 'mysql',\n        host: 'localhost',\n        port: 3306,\n        ...\n    },\n    redis: {\n        host: '127.0.0.1',\n        port: 6379,\n        keyPrefix: 'mili:',\n        family: 4, // 4 (IPv4) or 6 (IPv6)\n        password: '',\n        db: 0,\n    },\n    ...\n}\n```\n\n## 🚀 安装\n### 安装依赖的模块\n进入项目目录，输入命令\n```\nnpm install\n```\n\n进入 {项目目录}/pc 目录下，输入命令\n```\nnpm install\n```\n\n再输入\n```\nnpm start\n```\n\n## 🚕 运行\n### 配置vscode\n```\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"type\": \"node\",\n            \"request\": \"launch\",\n            \"name\": \"Launch Program\",\n            \"runtimeArgs\": [\n                \"--nolazy\",\n                \"-r\",\n                \"ts-node/register\",\n            ],\n            \"args\": [\n                \"${workspaceFolder}/src/main.ts\",\n                \"|\",\n                \"./node_modules/.bin/pino-pretty\"\n            ],\n            \"env\": {\n                \"NODE_ENV\": \"development\"\n            },\n            \"sourceMaps\": true,\n            \"cwd\": \"${workspaceFolder}\",\n            \"protocol\": \"inspector\",\n            \"console\": \"integratedTerminal\",\n            \"internalConsoleOptions\": \"neverOpen\"\n        }\n    ]\n}\n```\n\n### 通过vscode来运行\n按快捷键`F5`来运行项目\n\n### 本地访问\n首页: http://local.nodejs123.com    \n管理后台: http://local.nodejs123.com/admin/  \n用户名: mili  \n密码: 123456\n\n### 线上体验\nhttps://www.nodejs123.com    \n\n## License\n[GPL](https://github.com/shen100/golang123-api/blob/master/LICENSE \"\")      \nMili is GPL licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshen100%2Fmili","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshen100%2Fmili","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshen100%2Fmili/lists"}