Learn to build a small website _3_ Install Nodejs Module _ Build Express

Source: Internet
Author: User
Tags install mongodb

Nodejs Install these modules:

Express, Express-generator, MongoDB, MySQL

Simple steps: Create a directory D:\js\BlogWebSite

CMD->CD d:->mkdir js->cd js->mkdir blogwebsite->cd blogwebsite

CMD to install the Global module First: (-G parameter is global installation)

1. NPM Install Express-g

2. NPM Install Express-generator-g

In the JS directory, the rapid deployment of an express-based website structure, named Blogwebsite:

Express Blogwebsite

It should be like this.

Note Package.json, this file probably records these things:

Project name/life cycle/Project Dependencies

In the Blogwebsite directory, install the Project module: (--save indicates that these packages are recorded in the Dependencies node of Package.json, the next deployment can be installed directly with NPM Install module, no need to add module name)

1. NPM Install MongoDB--save operation MongoDB

2. NPM Install Mongoose--save Operation MongoDB, package better

3. NPM install this component for Mysql-save Https://github.com/felixge/node-mysql

Install MongoDB will report warning tomorrow to solve

Learn to build a small website _3_ Install Nodejs Module _ Build Express

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.