NODEJS Installation Express Development Framework (Development environment: mkdir nodeshop && cd nodeshop > NPM init > NPM install Express--save > Express -e)
and using PM2 to manage http://www.jianshu.com/p/fdc12d82b661
Pit 1:PM2 start app.js or Hotnode app.js, are prone to error, here directly pm2 start./bin/www or Hotnode./bin/www No More errors
--none of the above continues more, the following continues to be more
Nodejs is what and can do, can Baidu search.
Here download a mall demo for learning Analytics Https://github.com/hubwiz/example-node
Put the computer locally, the command line calls the CD to the folder first NPM installs the installation under the dependency,
Then the node app.js after the error, is prompted MongoDB does not start. Start MongoDB.
Then node app.js boot, no error, then access to Localost 3000 port
Okay, there's a login for the bootstrap frame.
It is not a problem to prove the startup procedure. Then, sign up and log in. OK, but also no problem, then the specific further understanding of the mall merchandise management and other functions
Good, after all, is the demo, problem feedback: Add the product can only be text and price, the picture itself shows the picture of the phone, can not upload pictures, add to the shopping cart, when clearing, only pop alert, no docking payment port.
Also, add the item again and the cart will not show up.
See some of Baidu's expert message, think MongoDB do Mall is on the tightrope (very dangerous), and Nodejs open-source mall less poor.
So now it's time to master the basics of Nodejs, and see what it's for.
From Nodejs to Online mall