An open API service indexing awesome lists of open source software.

https://github.com/primaryobjects/node.js-material-starter-template

Node.js Jade Material Starter Template
https://github.com/primaryobjects/node.js-material-starter-template

css material material-design material-design-lite node node-js nodejs template

Last synced: 10 months ago
JSON representation

Node.js Jade Material Starter Template

Awesome Lists containing this project

README

          

Node.js Material Starter Template
===

A quick and easy Node.js + [Express](https://expressjs.com) + [Pug](https://www.npmjs.com/package/pug) + [Material Design Lite](https://getmdl.io) template project.

Also available for [Twitter Bootstrap](https://github.com/primaryobjects/Node.js-Bootstrap-Starter-Template).

## Usage
- Clone repository.
- Open a command prompt, navigate to the folder, and enter: npm install
- Next, run the app by entering: node app
- Browse to http://localhost:3000

## Preview:
![Screenshot](https://raw.githubusercontent.com/primaryobjects/Node.js-Material-Starter-Template/master/public/images/screenshot.png)

## Contents:

- layout.pug
- header.pug
- footer.pug
- links.pug
- index.pug

## Editing Pages:

Edit views/index.pug to add your content. The default contents include:

```
extends layout

block content
.mdl-grid
.mdl-cell.mdl-cell--12-col
h1 Program Name
p Hello World
```

## Adding Components

The template is compatible with all [Material Design Lite](https://getmdl.io/components/index.html) UI components.

For example, to add a button to the page, edit index.jade and add the snippet:

```
button.mdl-button.mdl-js-button.mdl-button--raised.mdl-js-ripple-effect.mdl-button--accent
| My Button
```

## Author
Kory Becker http://www.primaryobjects.com/kory-becker