1.2.2 • Published 8 years ago
express-handlebars-boilerplate v1.2.2
Express Handlebars Boilerplate
Boilerplate for server-side rendering using Handlebars and Express when you need a simple HTML/CSS page
Create environment variables
cp .env.example .envHow to build:
- Install Node
- Install NPM
To install packages
npm installTo build & start webservice
npm startOR
node app.js [port] [process title] [process.pid file](Default settings) Available URLs:
Basic ping request:
http://localhost:3000/pingBasic handlebars templating example:
http://localhost:3000/homeBasic handlebars templating with partials example:
http://localhost:3000/homeWithPartialsAn example with calling API to get data for the template:
http://localhost:3000/users/anvk/repos?token=SOME-KEY-HERETo run tests
npm testLicense
MIT license;