1.0.5 • Published 6 years ago

express-blog v1.0.5

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

Simple Blog Engine

Total Downloads Latest Unstable Version License NPM Version NPM Downloads

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 :

  1. MySQL database , with the model in accordance with the existing table in the 'data' directory.
  2. 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/