anteknik/express-blog
Composer 安装命令:
composer require anteknik/express-blog
包简介
Simple blog engine built using ExpressJS and NodeJS for learning purpose.
README 文档
README
This repository contains a sample implementation of a simple blog engine with NodeJS and ExpressJS.
Dependencies
Before you can run a blog , make sure some things have been there :
-
MySQL database , with the model in accordance with the existing table in the 'data' directory.
-
The Environment following variables are configured :
a. 'DB_HOST', contains hostname of the database system.
b. 'DB_USER', contains lists of users who can access the database.
c. 'DB_PASSWORD', contains user passwords in (b).
d. 'DB_BLOG', contains the name of the database that will be used.
In terms NodeJS , before installing dependency through 'npm' , first run the following command (Windows):
$ npm install -g gulp
$ npm install -g node-gyp
for Linux and Mac users, use sudo :
$ sudo npm install -g gulp
$ sudo npm install -g node-gyp
After the command exits, install dependency with the command :
$ npm install
both Mac, Windows, or Linux.
Running Blog
There is only one command to run a blog, namely :
$ gulp server
And the blog will be accessible in the http://localhost:3000/
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-03