From Nodejs to Online mall

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.