Almost the same as project-stub but with BEMTREE and Express.
npm i
enb makenpm run watch
nodemonYENV=production enb make
node serverTemplating starts in root block which replaces itself with page or any other context (if specified as argument to render function).
Run server in dev mode with NODE_ENV=development environment variable (nodemon will set it for you).
In dev mode
- Add
?json=1to URL to see raw data - Add
?bemjson=1to URL to see BEMJSON generated with BEMTREE templates.