# codi-fund-html **Repository Path**: zx0410/codi-fund-html ## Basic Information - **Project Name**: codi-fund-html - **Description**: 后台 管理 页面 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-08-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Superman Console > Superman Console, 管理平台,Anything you can do! > 适合大中小规模不同层次的`企业级`管理平台,高度模块化,任意模块都可以替换。适合各类项目进行定制化开发。接口级别的权限粒度控制。 > 假设Superman Console需要开发`1`个月时间,前后端各`1`人,费用各`2`w,总计最少需要`4w`。 > 三个项目使用Superman Console可减少人力`2`人,减少成本`12w` ## ScreenShot ![simple ScreeShot](./doc/img/superman-console.png) [Other ScreenShot](screenShot.md) ## 前端架构 ![vuex-flow](./doc/img/vuex-flow.png) ![vuex](./doc/img/vuex.png) - [vue.js](https://vuejs.org/api/) - [vue-router2](http://router.vuejs.org/zh-cn/index.html) - [vue-resource](https://github.com/pagekit/vue-resource/blob/master/docs/README.md) - [vuex](https://vuex.vuejs.org/en/intro.html) - [字体图标库](http://fontawesome.io/) - webpack - sass - [element UI](http://element.eleme.io/#/zh-CN/component/installation) - [vue-clipboards]() - [vue-qrcode]() - ... ## [RoadMap](./ROADMAP.MD) ## [ChangeLog](./CHANGELOG.MD) ## MOCK - mock数据放在:`/static/mock/` - 请求路径:`/static/mock/xxx.json` ## config - 修改对应的后端环境`config/superman.json` 这里要特别注意, ```` { "proxy": [ { "path": "/superman-web", "target": "http://121.40.31.185:8888/" } ] } ```` 所有的请求/superman-web的请求都会转向http://121.40.31.185:8888/superman-web 更多可以查看[proxy](doc/proxy.md) - 修改请求context 修改在`superman-console\src\common\httpUtil.js`中默认的`superman-web`改成当前项目中后端的上下文 - 上述两步的名称必须保持一致 ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build --production ``` 启动成功后管理员用户密码admin/***** 注: 如果npm报`chromedriver`错误,请使用如下方式安装 ``` bash npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver ``` ## 采用项目 - 公募基金 - 老来俏 - 好童星 - 问安 ## Notice - `vue`和`vue-template-compiler`版本必须保持一致 ## Nginx环境配置 ``` # 后端服务地址 upstream dev-codi-admin { server 10.117.202.61:9887; } server { listen 8888; #server_name localhost; charset UTF-8; #access_log logs/host.access.log main; location / { root /opt/wap; index index.html index.htm; } location /codi-admin { proxy_pass http://dev-codi-admin; proxy_redirect off; proxy_set_header Cookie $http_cookie; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_max_temp_file_size 0; proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffer_size 4k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; } location /codi-admin-html { alias /opt/codi-admin-html/; index index.html index.htm; } } ```