Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

是一个react小demo,构建工具是gulp+webpack,后台是爬虫提供的数据

License

Notifications You must be signed in to change notification settings

shaqihe/reactDemo

Repository files navigation

是基于React 开发的一个小demo, 结构比较简单,趁个周末写的


构建工具是 gulp + webpack

启动(在这之前要安装node、git、gulp)

1.git clone https://github.com/shaqihe/sunweb.git
2.cd sunweb
3.npm install
4.gulp //启动gulp 服务器
5.因为数据是基于后端的爬虫系统,单独启动 前端 是无法获取数据,方便大家调试,提供一下我开发机的地址,
 配置如下: 在根目录的 gulpfile 文件中 var options = url.parse('XXXXX');中的XX替换成
 'http://118.192.156.85:3000'。 用着方便,给个star,嘎嘎~
 
 
6. !! 项目的后台代码是: https://github.com/shaqihe/sunshine 也自己启动后台服务,然后设置var options = url.parse('XXXXX') XX为自己后台服务的ip 
说明:
1.前后端是完全分离了,前端单要起单独的服务器。
2.后端是node 提供数据,数据是爬虫抓取的,为加快爬虫数据读写,数据存储用的是redis
3.样式是less
4.代码采用es6 jsx 用babel编译
5.文件结构比较简单

About

是一个react小demo,构建工具是gulp+webpack,后台是爬虫提供的数据

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /