这个项目是为我的博客创建的,我的博客大概两年前使用angular.js-1.3.x建立的,博客地址 http://www.lizhiqianduan.com/myblog 。
现在,我打算使用ng2
来重写博客,并要求保持原博客的风格。
如果你clone了本项目,你只需要进入src目录,在控制台执行npm install && npm start
就可以查看本项目当前的效果。
如果你对ng2
或者是这个博客项目感兴趣欢迎加入我一起开发。
-
你可以点击右上角的
fork
按钮,将本项目fork到自己账号的项目管理里面; -
然后,使用git命令行
git clone https://github/你的账号名/ng2-xiaohei-blog
,将项目克隆到自己的本地计算机; -
修改本地计算机的代码;
-
使用命令
git push
将这些修改推送到自己的github版本库列表中; -
最后,打开浏览器,回到
www.github.com/你的账号名/ng2-xiaohei-blog
,点击页面的new pull request
按钮。
这样,就会给我发起一个代码合并请求来合并你修改的代码。
如果你的代码被合并了,那么恭喜你,你已经成为这个项目的贡献者了,你的名字将会出现在项目的contributors
栏目里。
我非常期待你的加入!
如果你已经克隆项目到你自己的计算机了,那么进入src目录,执行npm install
命令。这可能需要一些时间。
然后执行npm start
。这步会编译代码,并在浏览器显示项目的首页index.html
。
如果你修改、删除、新增了项目的文件,浏览器里的首页都会实时刷新。
是不是很简单啊?
project for site http://www.lizhiqianduan.com/myblog
This project is created for xiaohei's blog , which is built with angular.js-1.3.x
about tow years ago .
Now, I want to rewrite this blog in ng2
, and keeping the style of this blog.
If you are intersted in ng2
or have any idea about this blog , welcome to join me .
We can develop this project together , and leran ng2
from each other .
-
You can click the
fork
button on the page of top . This action will add this project to your repositories list . -
Open a shell on Mac or CMD on Windows , excute command
git clone https://your-github-account/ng2-xiaohei-blog
. -
Change or add code of this project that you want to .
-
Use command
git
to push your change . -
Finally , open browser and login site
github.com
, navigate to your repositoryng2-xiaohei-blog
, click thenew pull request
.
These steps will send me a request to merge your code which is changed .
If your code is merged to this project , congraduation , you are become a contributor for this project , and your name will be list in the table of contributors
.
I'm looking forward for your joinning!
If you have clone this project to your local computer,then excute npm install
. This may take you a few minutes .
And if everything is ok , excute npm start
. This will build the code and navigate to index.html
in your browser .
And, then if change or add ,or delete some code of this project , the index.html
in yours browser will refresh auto self .
It's so easy,isn't it?