This action will force synchronization from CodingMr.Zhou/Peer-To-Peer, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#怎么把项目在本地跑起来?
纠结了很久,考虑到各方面的因素,我决定抛弃
angular.js
!改用react.js
,相信我,这样写起代码来,真的很爽!
##先啰嗦几句## 不得不说,react.js + Flux 的编程方式上手也许有点困难, 因为它并不是一种 MVC 模式, 它只是一种编程思想 ,意识到这一点,也许你能更快的接受它。
在本次更新中,我们不仅抛弃了angular.js
,取而代之的是react.js + Flux
终结者开发模式。而且,我们加入了另外一些方便我们编程的工具:
Less 是一门 CSS 预处理语言,它扩充了 CSS 语言,增加了诸如变量、混合(mixin)、函数等功能,让 CSS 更易维护、方便制作主题、扩充。 点我快速入门
Webpack 是一个前端资源加载/打包工具,只需要相对简单的配置就可以提供前端工程化需要的各种功能,并且如果有需要它还可以被整合到其他比如 Grunt / Gulp 的工作流。
##项目本地部署##
npm install
安装依赖,这次我们加入了很多实用的工具。webpack
: npm install -g webpack
webpack
来编译文件(JSX, LESS ...)npm start
运行服务器(服务器运行在:http://localhost:3000)
have fun ! :)
Sign in for post a comment
Comments ( 0 )