mhbseal / blog Goto Github PK
View Code? Open in Web Editor NEWblog base on express,co,mongoose,react,redux,react-router...
blog base on express,co,mongoose,react,redux,react-router...
请问下,没有初始化数据吗?没见这块的说明,好像也没找着。。。
RT,大量list的时候,同步渲染想做成部分接口同步,部分异步
你好:
根据readme里边的步骤 最后一步开了npm run dev.noauth 后访问http://localhost:3004/admin,提示localhost 拒绝了我们的连接请求。我看mongodb 那边应该是也是运行了的,因为运行npm run dev.noauth的时候有连接的提示:[initandlisten] connection accepted from 127.0.0.1:51482 #2 (1 connection now open)。
控制台并没有报任何错误
OS: win10
node:v4.3.0
期待您的回答
npm -v ->3.9.5
node -v -> v6.2.2
[piping] can't execute file: /root/blog/bin/renderServer.js
[piping] error given was: Error: imports[1] for react-transform-catch-errors does not look like a React component.
at catchErrors (/root/blog/node_modules/react-transform-catch-errors/lib/index.js:26:11)
at Object.<anonymous> (/root/blog/fe/src/helpers/Html.js:4:47)
at Module._compile (module.js:541:32)
at normalLoader (/root/blog/node_modules/babel-core/lib/api/register/node.js:199:5)
at Object.require.extensions.(anonymous function) [as .js] (/root/blog/node_modules/babel-core/lib/api/register/node.js:216:7)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Module._load (module.js:409:3)
at Function.module._load (/root/blog/node_modules/piping/lib/launcher.js:32:16)
at Module.require (module.js:468:17)
[piping] further repeats of this error will be suppressed...
Hash: 88ce4cd8fb0aa6194a55
Version: webpack 1.13.1
Time: 24863ms
fe/src/containers/admin/ArticleList.js 中 添加一列“来源” 标题来源作者 。 发现网站上刷新后,“来源”闪了下又回到原来的版本,修改没有生效。 重新启动 npm start 修改还是没有生效,npm run build.dev后,再 npm start 修改就生效了。 不知道您那边是不是也有这个问题?
npm run dev
require('babel-register')(babelConfig) 下
全局引用的是babel5,直接安装babel-register,冲突
使用require('babel-core/register') 会报异常
Error: bind EADDRINUSE null:3004
启动失败-。-
Hi, 我看到在文件blog/fe/src/containers/Article.js
中的第78行
this.handleReply.bind(this, comment.user && comment.user.name || comment.admin && comment.admin.name)
这里为什么要bind一下,react0.4以后的版本不是就可以autobind了吗?
我试了一下改成普通的,那么在handleReply方法体里this就是一个null。
我想问一下这里为什么要这样写,是因为用了react-redux造成的吗?
求解释,十分感谢!
挺喜欢你的博客的,有些源码不懂,有详细的教程吗?
输入 http://localhost:3004/admin,提示 网络错误,请稍后重试..,应该是mongo没连上,我看了下moogo都没有请求,其他又没报错什么的
感觉是不是你的依赖包太旧了造成的?
有句这样的提示,不知道有没有用
Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html
[piping] can't execute file: /Users/baidu/source/react/blog/bin/renderServer.js
[piping] error given was: Error: Cannot find module 'invariant'
at Function.Module._resolveFilename (module.js:336:15)
at Function._module3.default._resolveFilename (/Users/baidu/source/react/blog/node_modules/webpack-isomorphic-tools/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:403:34)
at Function.module._load (/Users/baidu/source/react/blog/node_modules/piping/lib/launcher.js:24:23)
at Module.require (module.js:365:17)
at require (module.js:384:17)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.