-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
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.
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 nodejsAssuming you've successfully installed Node.js. create a directory for your web application:
mkdir myapp && cd myappInitialize myapp/ with a package.json via npm init:
npm initThis command will prompts you for entry point (Default to index.js).
Hit Enter to accept default.
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 --savebrick-liquid is a Liquid template engine for Brick.js.
Static assets for Brick.JS site is generated via brick-asset,
which should be installed globally:
npm install brick-asset -gCheck your brick-asset installation:
# This should echo a version number
brick-asset --versionhttps://github.com/brick-js/brick.js/tree/master/examples/installation
Copyright © 2016 Harttle