实现了数据录入,以列表形式显示
-
确保nodejs,mongodb已安装,具体安装步骤在后面
-
cd 进工程目录
-
npm install express --save
npm install mongoose
npm install
-
npm start
-
浏览器打开 http://127.0.0.1:3000/
官网 : nodejs
download file and double click
brew install node
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install npm
download ***.tar.gz , make install
download file and double click http://www.mongodb.org/
> cd C:\Program Files\mongodb\bin
> C:\Program Files\mongodb\bin>mongod -dbpath "C:\Program Files\mongodb\data\db"
https://docs.mongodb.org/master/tutorial/install-mongodb-on-ubuntu/?_ga=1.49695202.534451744.1453280087
brew install mongodb
启动:
mongod --config /usr/local/etc/mongod.conf