Giter Club home page Giter Club logo

boowa's Introduction

boowa

= a fun blog generator



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

  1. Install boowa globally
npm install boowa -g
  1. Make a directory to generate your blog
mkdir myBlog && cd myBlog
boowa
  1. Select one style from the inquiring list

  2. 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.

License

MIT

boowa's People

Contributors

zhouhanseng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.