【我的笔记BLOG1】配置webstorm + node.js +express + mongodb开发博客的环境
时间:2014-12-15 11:39:27
收藏:0
阅读:482
1. 安装webstorm 并破解
2. 安装node (以及express框架)
- 至官网下载并安装。(http://nodejs.org)v0.10.32 msi
安装后测试,打开命令行,
c:\users\Iris804> node
>console.log("hello")
输出 hello
undefined
- 安装node.js 包管理器(Express)
ctrl+d, 回到初始窗口,输入 npm install -g express-gengerator , 全局模式下安装express

- 新建blog文件夹
切换到目标文件夹,express -e blog
cd blog & npm install

3. 对webstorm配置nodejs
配置Node interpreter 和 Sources of Node.js Core Modules

4. 安装mongodb
- 至官网下载 http:\\www.mongodb.org, 下载对应版本
- 将下载的文件解压为mongodb, 新建一个blogdata文件夹,存储日志数据
原文:http://www.cnblogs.com/xujingbo/p/4164327.html
评论(0)