boowa
v1.2.3
Published
βοΈβοΈπβοΈβοΈ colorful blog generator
Downloads
7
Readme
Table of Contents
Themes
Let's see some boowa blogs first, will add more themes later:
Features
- colorful: provide kinds of styles to take your fancy
- simple: few tips to play your blog
- support offline: keep reading even if there's no wifi
- very modern: works very well with async functions (node 7.6+)
- fast as lightning: it takes almost no time to generate a blog!
Quick Start
- Install boowa globally
npm install boowa -g
- Make a directory to generate your blog
mkdir myBlog && cd myBlog
boowa
Select one style from the inquiring list
Start a development server
npm run start
Why my name is boowa
boowa is built with:
- bankai - π - friendly web compiler
- choo - π 4kb framework for creating sturdy frontend applications
- awoo - πΈ declarative small site generator
so, boowa
API
boowa
Generate a new blog app in a empty directory
app structure
Actually a choo app yeah~, but you only need to handle markdown files and _config.json
boowa create
Run this command to generate a new markdown file contains the necessary structure, and it will build the html file automatically:
β οΈ Put content in markdown-body
:
_config.json
This file contains metadatas like name, email etc.
boowa build
After edit _config.json
or modify markdown files, run this command to generate new templates.
npm run start
Start a development server
npm run build
Compile all files to dist/
boowa serve <port | 8080>
Boowa has a simple built-in server , after npm run build && cd dist
, run this command to serve the production code.
update the newest code
After install the newest boowa, run boowa
in the boowa-existed directory, this update would not rewrite the markdown files and _config.json
.
support offline locally
Service-worker works under https in production mode, so if you want to test the offline function locally, for chrome, run this command first:
/Applications/Google\ Chrome.app/Conts/MacOS/Google\ Chrome --user-data-dir=/tmp/foo --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=http://localhost:port
You will see ServiceWorker registration successful with scope: http://localhost:port/
in the developer tool, if service-worker register successfully.