Skip to content
forked from astalker/nblog

A Simple CMS module for Node Js using Express, EJS and Mongo

License

Notifications You must be signed in to change notification settings

alexknutson/nblog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBLOG

Simple Blog CMS using Mongoose, Express and EJS.

Installation

$ npm install nblog

or via Github

$ git clone git://github.com/astalker/nblog.git
$ cd nblog
$ npm install

Usage

To configure NBlog add the following to your main script. For your local environment (dev) you can specify a plain username and password however on production it is advisable to use environment variables.

var nblog = require('nblog');
params = {
    config: {
        project: 'My Project',
        public: '/../public',
        per_page: '10'
    },
    dev: {
        user: 'user',
        pass: 'password',
        port: '3000',
        db:   'mongodb://localhost/articles'
    },
    prod: {
        user: process.env.NBLOG_USER,
        pass: process.env.NBLOG_PASSWORD,
        db:   process.env.NBLOG_DB
    }
}
nblog.init(params);

Features

  • Add, edit and delete articles. Meta content included for some basic SEO.
  • Articles displayed in a blog layout with links to each article.
  • Article urls automatically built based on date and the alias.
  • Add, edit and delete content pages.
  • Additional content pages displayed in the main nav.
  • Google sitemap generation.
  • Twitter Bootstrap implemented.

Requirements

MongoDB is required and should be running before starting Nblog.

About

A Simple CMS module for Node Js using Express, EJS and Mongo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published