The latest interest in Nodejs, by learning the online Nodejs example, the other people's example to knock it over. While everyone else has a ready-made code. But after you knock it out, there are still some minor bugs. And then through the slow learning. Finally, the example was run up. Record it.
Environment:
Install Nodejs, https://nodejs.org/en/
Install MongoDB, official online was wall (can not say MongoDB official website was wall, is the official online quote Google on the jquery library was wall, resulting in the page JS error, download button out of the).
This is the official website address: Https://www.mongodb.org/downloads can not FQ children's shoes to my Baidu network disk download, 64-bit Http://pan.baidu.com/s/1eQz3CNg
Install modules such as Express via NPM.
Here is the effect of running
Learn Nodejs+express+angular+socket.io, vote demo