geekan / coding_marathon

12 stars 1 forks source link

zzuieliyaoli参与编程马拉松,为期365天 #27

Closed zzuieliyaoli closed 7 years ago

zzuieliyaoli commented 8 years ago
zzuieliyaoli commented 8 years ago

day 1

看教程 https://christianalfoni.github.io/react-webpack-cookbook/Optimizing-rebundling.html

zzuieliyaoli commented 8 years ago

day 2

熟悉webpack、react

http://code.oneapm.com/javascript/2015/07/07/webpack_performance_1/

http://stackoverflow.com/questions/33125669/uncaught-referenceerror-reactdom-is-not-defined

https://github.com/christianalfoni/react-webpack-cookbook/issues/35

geekan commented 8 years ago

活动页面很明显是可以抽象成模板逻辑的,也不知道github上有没有现成的库

zzuieliyaoli commented 8 years ago

@geekan 我粗略搜了一下,貌似没有。就当是造轮子了。。

day 3

webpack能跑通了,还需认真翻看文档。

直接用es2015写react步子迈的有点大,先从es2015看起吧

http://gank.io/post/564151c1f1df1210001c9161

http://www.sitepoint.com/understanding-ecmascript-6-class-inheritance/

http://fourkitchens.com/blog/article/practical-introduction-es2015-classes

http://exploringjs.com/es6/ch_classes.html

http://reactkungfu.com/2015/07/why-and-how-to-bind-methods-in-your-react-component-classes/

http://www.newmediacampaigns.com/blog/refactoring-react-components-to-es6-classes

https://github.com/code0wl/react-example-es2015

zzuieliyaoli commented 8 years ago

day 4

继续熟悉es2015

https://github.com/reactjs/react-art/issues/37

https://github.com/facebook/react/issues/4065

https://github.com/facebook/react/issues/3040

https://github.com/facebook/react/issues/3509

https://github.com/facebook/react/issues/3090

zzuieliyaoli commented 8 years ago

day 5 这几篇文章很好

http://exploringjs.com/es6/ch_classes.html

http://www.sitepoint.com/understanding-ecmascript-6-class-inheritance/

zzuieliyaoli commented 8 years ago

day6

继续react

https://facebook.github.io/react/docs/top-level-api.html

https://gist.github.com/sebmarkbage/ef0bf1f338a7182b6775

zzuieliyaoli commented 8 years ago

day 7

遇到了angular的坑

$scope.$digest()相关

zzuieliyaoli commented 8 years ago

day 8

webpacl dev server

react flux

zzuieliyaoli commented 8 years ago

day 9

node server with webpack

zzuieliyaoli commented 8 years ago

day 10

webpack dev server with node express

zzuieliyaoli commented 8 years ago

day 11

webpack dev server with node express 搞通了。

jade的官方文档简直不能称之为文档啊。。

webpack也是醉的不行。。

遇到的问题:

http://stackoverflow.com/questions/14115893/nodejs-render-raw-html-with-express

http://stackoverflow.com/questions/29586928/react-minified-exception-occurred

zzuieliyaoli commented 8 years ago

day 12

react-router and add test

https://github.com/rackt/react-router/tree/latest

https://babeljs.io/docs/setup/#mocha

https://discuss.reactjs.org/t/whats-the-prefered-way-to-test-react-js-components/26/2

http://mochajs.org/#mocha-opts

https://blog.algolia.com/how-we-unit-test-react-components-using-expect-jsx/

zzuieliyaoli commented 8 years ago

day 13

学习写测试

zzuieliyaoli commented 8 years ago

day 14

use mocha chai jsdom to write tests

zzuieliyaoli commented 8 years ago

day 15

add babelrc

看各种文档看的好辛苦

zzuieliyaoli commented 8 years ago

day 16

表哥结婚,喝的有点多。。。。

zzuieliyaoli commented 8 years ago

day 17

There is something wrong when i installed gulp-sass

  1. https://github.com/sass/node-sass/issues/1027
  2. https://github.com/sass/node-sass/issues/1012
  3. http://stackoverflow.com/questions/31573847/cannot-install-gulp-sass

update 2016.1.26

I just copy and paste the gulp-sass that i installed before for other demos into the node_modules directory.

After the step above, i ran npm update gulp-sass.

Everything goes well!

zzuieliyaoli commented 8 years ago

day 18

这篇文章很棒!

http://www.zhangxinxu.com/wordpress/2016/01/development-of-ui-components-based-on-native-html/

zzuieliyaoli commented 8 years ago

day 19

整一整博客

zzuieliyaoli commented 8 years ago

day 20

继续整博客

zzuieliyaoli commented 8 years ago

day 21

整理博客

zzuieliyaoli commented 8 years ago

day 22

博客。。

真心吐槽webpack的文档啊。。。

zzuieliyaoli commented 8 years ago

day 23

博客。。

看mongoDB的文档

小坑:

mongod --dbpath=./data --port 27017,要注意路径的问题。./data!!

zzuieliyaoli commented 8 years ago

day 24

express

Chrom extension - Postman 挺好用的说~

zzuieliyaoli commented 8 years ago

day 25

image upload

zzuieliyaoli commented 8 years ago

day 26、27

image upload is done.

zzuieliyaoli commented 8 years ago

day 28、29、30

1

https://gist.github.com/pos1tron/094ac862c9d116096572

const mongoServerUrl = 'mongodb://localhost:27017/test'
MongoClient.connect(mongoServerUrl, function(err, db) {
    assert.equal(null, err)
    console.log("Connected correctly to server.")
    db.close()
})

var db = new mongo.Db('test', new mongo.Server('127.0.0.1', 27017));
var gfs;
db.open(function(err, db) {
  if (err) throw err;
  gfs = Grid(db, mongo);
});

2

mongod --dbpath=./data --port 27017

3 emoji

  1. http://www.emoji-cheat-sheet.com/
  2. https://github.com/dannyfritz/commit-message-emoji
zzuieliyaoli commented 8 years ago

day 31、32

preview image before uploading

http://stackoverflow.com/questions/14069421/show-an-image-preview-before-upload

https://developer.mozilla.org/zh-CN/docs/Web/API/FileReader

zzuieliyaoli commented 8 years ago

day 33、34、35、36

开始工作 :relaxed:

git

mongo-express

npm

npm update npm install -g npm

zzuieliyaoli commented 8 years ago

day 37

components

angular

zzuieliyaoli commented 8 years ago

day 38

components

angular

zzuieliyaoli commented 8 years ago

day 39

components

angular

ng-blur="myForm.item.$dirty = true"
zzuieliyaoli commented 8 years ago

day 40、41、42

components

angular

  1. add promise
  2. source code - to know about how angular runs , especially controller and directive
zzuieliyaoli commented 8 years ago

day 43、44、45、46、47

Angular

Front End Interview Questions

Vue

WebPack

zzuieliyaoli commented 7 years ago

Bye 2016 Hello 2017