bonnie

0.0.1-beta • Public • Published

Bonnie

Alpha!

What is Bonnie?

To put it simply: Bonnie is a middleware to be used with express to create static blogs and/or pages. Bonnie comes with a generator to easily generate Bonnie projects and to manage your page. Think of the CLI as the alternative to a bloated administrative interface.

Installation

Begin by installing Bonnie globally.

$ npm install -g bonnie 

This will give you access to the bonnie executable. Now scaffold a bonnie project

$ bonnie new myblog cd && myblog && npm install

This will create the directory structure for your blog and install all its dependencies. You are now ready to start your server.

To keep Bonnie from becoming bloated and hard to extend, Bonnie generates a server file and this is what you run to start the server.

$ node index.js

Creating blog posts

Blog posts are per default located in the _posts directory. The filename of a blog post follows a specific format [YYYY-MM-DD]_["MyPostTitle"].md. This is becuase Bonnie uses the date as the published date for the post. To make the process of creating posts easier the CLI provides a generator.

$ bonnie post --title "MyPost"

options

--title: Title is required and will be the title of your blog post. Obviously you can just rename the file if you want to change the title.

--draft: Will generate it into the draft directory rather than posts.

--date [YYYY-MM-DD]: Overrides the default date which is the current date.

Readme

Keywords

none

Package Sidebar

Install

npm i bonnie

Weekly Downloads

3

Version

0.0.1-beta

License

none

Last publish

Collaborators

  • shockwork