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