psdcoder / bem-express

BEM project-stub with BEMTREE and express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bem-express

Almost the same as project-stub but with BEMTREE and Express.

Installation

npm i
enb make

Development

npm run watch
nodemon

Production

YENV=production enb make
node server

Templating

Templating starts in root block which replaces itself with page or any other context (if specified as argument to render function).

Pro tips

Run server in dev mode with NODE_ENV=development environment variable (nodemon will set it for you).

In dev mode

  • Add ?json=1 to URL to see raw data
  • Add ?bemjson=1 to URL to see BEMJSON generated with BEMTREE templates.

About

BEM project-stub with BEMTREE and express


Languages

Language:JavaScript 100.0%