概述
Openshift的主要代码库是origin,它包含除了前端以外的所有东西,origin-web-console是前端的代码库,origin-web-catalog和origin-web-common是前端代码库的依赖库,origin-web-console-server是前端和origin交互的的代码库。
上一篇文章介绍了origin的二次开发流程,本文介绍在本地如何对origin-web-console3.9作二次开发,其他版本没有亲测,操作上可能会有一些区别。本地操作系统为Mac,若你是其他操作系统请做对应转换。
正文
安装 Nodejs 和 npm
安装 grunt-cli 和 bower
npm install -g grunt-cli bower
安装web-console的依赖包
cd origin-web-console
hack/install-deps.sh
启动web-console简单测试下
grunt serve
在浏览器打开https://localhost:9000/可以看到loading界面
修改代码,比如
origin-web-console/app/views/browse/secret.html