# express-handlebars-boilerplate

> Boilerplate for server-side rendering using Handlebars and Express when you need a simple HTML/CSS page

Latest version **1.2.2** (published 2017-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install express-handlebars-boilerplate
pnpm add express-handlebars-boilerplate
yarn add express-handlebars-boilerplate
bun add express-handlebars-boilerplate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2017-12-05 |
| First published | 2016-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Known vulnerabilities | 0 (+19 in 6 direct dependencies) |
| Install scripts | no |
| GitHub stars | 22 |
| Maintainers | roserocket, anvk |
| Keywords | express, handlebars, boilerplate, templating, server-side rendering, templates |

## Links

- npm: https://www.npmjs.com/package/express-handlebars-boilerplate
- Repository: https://github.com/roserocket/express-handlebars-boilerplate
- Issues: https://github.com/roserocket/express-handlebars-boilerplate/issues
- npm.io page: https://npm.io/package/express-handlebars-boilerplate

## Dependencies (13)

- [less](https://npm.io/package/less.md) 2.7.3
- [dotenv](https://npm.io/package/dotenv.md) 4.0.0
- [moment](https://npm.io/package/moment.md) 2.19.3
- [morgan](https://npm.io/package/morgan.md) 1.9.0
- [express](https://npm.io/package/express.md) 4.16.2
- [promise](https://npm.io/package/promise.md) 8.0.1
- [bootstrap](https://npm.io/package/bootstrap.md) 3.3.7
- [superagent](https://npm.io/package/superagent.md) 3.8.1
- [body-parser](https://npm.io/package/body-parser.md) 1.18.2
- [console-stamp](https://npm.io/package/console-stamp.md) 0.2.6
- [express-unless](https://npm.io/package/express-unless.md) 0.3.1
- [express-handlebars](https://npm.io/package/express-handlebars.md) 3.0.0
- [less-plugin-clean-css](https://npm.io/package/less-plugin-clean-css.md) 1.5.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.2.2 (latest) — 2017-12-05
- 1.2.1 — 2017-12-04
- 1.2.0 — 2017-12-03
- 1.1.0 — 2017-06-16
- 1.0.0 — 2017-01-04
- 0.0.2 — 2016-11-28
- 0.0.1 — 2016-11-28

## README

# 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 .env
```

## How to build:

1. Install Node
2. Install NPM

To install packages

```
npm install
```

## To build & start webservice

```
npm start
```

OR

```
node app.js [port] [process title] [process.pid file]
```

## (Default settings) Available URLs:

Basic ping request:

```
http://localhost:3000/ping
```

Basic handlebars templating example:

```
http://localhost:3000/home
```

Basic handlebars templating with partials example:

```
http://localhost:3000/homeWithPartials
```

An example with calling API to get data for the template:

```
http://localhost:3000/users/anvk/repos?token=SOME-KEY-HERE
```

## To run tests

```
npm test
```

## License

MIT license;

---
_Source: https://npm.io/package/express-handlebars-boilerplate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
