Table of Contents
Because I lost my 2 factor authentic token, this project has moved to https://github.com/zhouhanseng/boowa
Let's see some boowa blogs first, will add more themes later:
- 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!
- 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
boowa is built with:
- bankai - π - friendly web compiler
- choo - π 4kb framework for creating sturdy frontend applications
- awoo - πΈ declarative small site generator
so, boowa
Generate a new blog app in a empty directory
Actually a choo app yeah~, but you only need to handle markdown files and _config.json
Run this command to generate a new markdown file contains the necessary structure, and it will build the html file automatically:
markdown-body
:
This file contains metadatas like name, email etc.
After edit _config.json
or modify markdown files, run this command to generate new templates.
Start a development server
Compile all files to dist/
Boowa has a simple built-in server , after npm run build && cd dist
, run this command to serve the production code.
After install the newest boowa, run boowa
in the boowa-existed directory, this update would not rewrite the markdown files and _config.json
.
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.