Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Installation

Jun Yang edited this page May 17, 2016 · 5 revisions

Brick.JS is a Web Application Framework built on Node.js, intended to be used along with Express. brick.js depends on Express and brick-asset.

  • Express is a minimal, unopinionated web framework for Node.js,
  • brick-asset is a command-line tool, which provides static assets generation for Brick.JS sites.

Node.js

Install Node.js according to documentations here: https://nodejs.org/

# Archlinux
yaourt -S nodejs
# Mac Homebrew
brew install nodejs
# CentOS/RedHat with EPEL repository
sudo yum install nodejs

App Directory

Assuming you've successfully installed Node.js. create a directory for your web application:

mkdir myapp && cd myapp

Initialize myapp/ with a package.json via npm init:

npm init

This command will prompts you for entry point (Default to index.js). Hit Enter to accept default.

Install Brick.JS

brick.js is intended to work with express, and typically you'll need a template engine. Now Install these packages in your myapp/ directory:

npm install brick.js express brick-liquid --save

brick-liquid is a Liquid template engine for Brick.js.

Install Brick-Asset

Static assets for Brick.JS site is generated via brick-asset, which should be installed globally:

npm install brick-asset -g

Check your brick-asset installation:

# This should echo a version number
brick-asset --version

Source Code

https://github.com/brick-js/brick.js/tree/master/examples/installation

Clone this wiki locally