Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.39 KB

File metadata and controls

29 lines (16 loc) · 1.39 KB

angular-requirejs-discussion-thread-demo

This is an example app that demonstrates a front-end build setup using Grunt, Bower, RequireJS, and AngularJS.

Synopsis

The application feeds in a JSON file that models a threaded discussion. The discussion thread structure is represented as a flat array with an adjacency list. The app converts this to a tree data structure to make it easier to pass off to a recursive template, which generates the thread's comment HTML snippets.

Installation

Note: the following requires that nodejs is installed, follow the node installation instructions for your system if needed.

Use npm install to install the required node modules.

Use bower install to install the required bower modules.

Use grunt development to compile a development deploy in the www directory.

Use grunt preflight to compile a production deploy in the www directory.

Screenshots

The opening screen, all discussion threads are collapsed.

opening screen

Clicking on a discussion expands the thread.

poster screen