一个node-express页面应用,较为简单朴素,但是基本功能都有。
express框架,jade模板,mysql数据库,passport验证登录注册。
1.克隆到本地(Clone this repo):
gitclone [email protected]:XinleiStone/ours-blog.git
2.进入目录,安装依赖(Install the package):
npm install
3.配置数据库(Config the database files):
config/config.js
4.建库表(Create the database schema):
node db/create_database.js
5.启动(Launch):
node app.js
6.最后在浏览器中访问即可(Visit in browser):
http://localhost:8080http://liuxinlei.com/notes