Skip to content

Latest commit

 

History

History
executable file
·
74 lines (57 loc) · 1.52 KB

README.md

File metadata and controls

executable file
·
74 lines (57 loc) · 1.52 KB

Build instructions

Built with Grunt

Development and technology notes.

Command line

# First:
$ cd popular/source/

# Next, install:
$ npm install
# ... or update Grunt dependencies:
$ npm update

# Update Bower packages:
$ grunt plugins
# ... or:
$ npm run plugins

# Watch:
$ grunt watch
# ... or:
$ npm run watch

# Development build:
$ grunt
# ... or:
$ grunt dev
# ... or:
$ npm run dev

# Production build:
$ grunt prod
# ... or:
$ npm run prod

Note: If Grunt isn’t installed globally, then roll with the $ npm ... commands.

Demos

DEVELOPMENT PRODUCTION
qr code qr code
$ grunt $ grunt prod

JSON

The javascript expects JSON input with this basic structure:

{
	"stories": [
		{
			"byline": "Billy Johnson",
			"category": "Crime",
			"count": 1,
			"deck": "Lorem ipsum dolor sit amet",
			"headline": "The quick brown fox jumps over the lazy dog",
			"path": "\/foo\/permalink.html",
			"published": "2014-09-16 15:48:01",
			"section": "local",
			"section_link": "\/foo\/",
			"server": "http://site.com"
		}
	]
	
	// ...
	
}