Giter Site home page Giter Site logo

jackhutu / jackblog-react Goto Github PK

View Code? Open in Web Editor NEW
288.0 17.0 96.0 12.42 MB

Jackblog react 版, 个人博客系统, 使用服务端渲染(Universal / Isomorphic), react, redux, react-router, react-bootstrap, immutablejs, redux-form等

Home Page: https://react.jackhu.top

License: MIT License

HTML 1.52% JavaScript 98.03% CSS 0.31% Dockerfile 0.15%
react redux immutablejs redux-form universal isomorphic

jackblog-react's People

Contributors

jackhutu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jackblog-react's Issues

npm run dev fail

0 info it worked if it ends with ok
1 verbose cli [ '/var/lib/nodejs/node-v4.4.2-linux-x64/bin/node',
1 verbose cli '/var/lib/nodejs/node-v4.4.2-linux-x64/bin/npm',
1 verbose cli 'run',
1 verbose cli 'dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info predev [email protected]
6 info dev [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec dev script
9 verbose stack Error: [email protected] dev: npm-run-all --sequential build-server:dev start-dev
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (/var/lib/nodejs/node-v4.4.2-linux-x64/lib/node_modules/npm/lib/utils/lifecycle.js:217:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess. (/var/lib/nodejs/node-v4.4.2-linux-x64/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:827:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd /var/lib/nodejs/jackblog-react-redux-master
12 error Linux 3.10.0-229.el7.x86_64
13 error argv "/var/lib/nodejs/node-v4.4.2-linux-x64/bin/node" "/var/lib/nodejs/node-v4.4.2-linux-x64/bin/npm" "run" "dev"
14 error node v4.4.2
15 error npm v2.15.0
16 error code ELIFECYCLE
17 error [email protected] dev: npm-run-all --sequential build-server:dev start-dev
17 error Exit status 1
18 error Failed at the [email protected] dev script 'npm-run-all --sequential build-server:dev start-dev'.
18 error This is most likely a problem with the jackblog-react-redux package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error npm-run-all --sequential build-server:dev start-dev
18 error You can get information on how to open an issue for this project with:
18 error npm bugs jackblog-react-redux
18 error Or if that isn't available, you can get their info via:
18 error
18 error npm owner ls jackblog-react-redux
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

关于服务端渲染,路由页面子组件内的数据预获取问题

看到您的这个项目做了服务端数据的预获取,那么路由页面的子组件的数据看到您是在路由页面发的请求获取的,也就是说服务端的时候父组件代替子组件发请求获取数据。那这样做是不是有违组件低耦合的原则呢?我没接触过正式的SSR项目,不清楚一般这种问题是怎么解决的,所以来请教一下

能否提供下日志发布模块

我过了下 react 版的客户端代码,发现没有涉及到日志发布的部分。
请问下是遗漏了还是使用的其他语言编写的?
能否提供下呢,谢谢。

关于bindActionCreators的优化

看着这个项目学react的,做的过程中发现,可以把bindActionCreators这一步移动到actions的index.js文件中,这样可以一次性统一bindActionCreators。这样做会有弊端吗?

能帮我看下这是什么问题吗

WARNING in .//.4.10.2@express/lib/view.js
Critical dependencies:
50:48-69 the request of a dependency is an expression
@ ./
/.4.10.2@express/lib/view.js 50:48-69

WARNING in .//.0.1.13@bson-ext/ext/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./win32/x64/bson i n E:\blog\node_modules.0.1.13@bson-ext\ext
@ ./
/.0.1.13@bson-ext/ext/index.js 6:10-37

WARNING in .//.0.1.13@bson-ext/ext/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./win32/ia32/bson in E:\blog\node_modules.0.1.13@bson-ext\ext
@ ./
/.0.1.13@bson-ext/ext/index.js 8:10-38

WARNING in .//.0.1.12@encoding/lib/iconv-loader.js
Critical dependencies:
9:12-34 the request of a dependency is an expression
@ ./
/.0.1.12@encoding/lib/iconv-loader.js 9:12-34

WARNING in .//.1.2.1@bindings/bindings.js
Critical dependencies:
76:22-40 the request of a dependency is an expression
76:43-53 the request of a dependency is an expression
@ ./
/.1.2.1@bindings/bindings.js 76:22-40 76:43-53

WARNING in ./~/.1.2.1@bindings/README.md
Module parse failed: E:\blog\node_modules.1.2.1@bindings\README.md Unexpected t oken (2:3)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:3)
at Parser.pp$4.raise (E:\blog\node_modules.3.3.0@acorn\dist\acorn.js:2221:1 5)
at Parser.pp.unexpected (E:\blog\node_modules.3.3.0@acorn\dist\acorn.js:603 :10)
我用webpack打包生产环境老是报这种错误,我用babel-node去编译开发环境就不会报错,配置基本和你的webpack.config.prod的配置差不多

npm run dev 启动错误

win10平台,nodejs4.1.1,npm2.14.4,启动报错如下:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: npm-run-all --sequential build start-prod
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:817:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd C:\Users\haiyang\github\jackblog-react-redux
12 error Windows_NT 10.0.10586
13 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
14 error node v4.1.1
15 error npm v2.14.4
16 error code ELIFECYCLE
17 error [email protected] start: npm-run-all --sequential build start-prod
17 error Exit status 1
18 error Failed at the [email protected] start script 'npm-run-all --sequential build start-prod'.
18 error This is most likely a problem with the jackblog-react-redux package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error npm-run-all --sequential build start-prod
18 error You can get their info via:
18 error npm owner ls jackblog-react-redux
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

你好

博主,请教个问题,最好能加下我QQ282798275,或者告诉我你的, 我现在是页面里有很多地方有window对象或者是有window.navigator.userAgent;这样node渲染时运行server.js的时候,serverRender报错,没有window对象,想问下这种怎么解决呢

a problem

follow your document, i can not start the project.can u help?
image

再次渲染时,无法进行seo的问题

问题是这样的,文章列表初始化时,可进行渲染,并进行seo的,但是在加载 时,进行state的更改时,并不能进行再次的处理,seo不到新加载的内容,这个怎么破??

开发环境client和server代码不一致

使用npm run dev开发的时候如果修改了代码clent会自动更新,但是如果刷新的话会提示服务器渲染的代码和客户端不一致,要结束进程重新npm run dev才行,不知道作者是怎么解决这个问题的?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.