XinDong Time Bank (心動時間銀行)

I am working on a volunteer platform. The demo is available at: http://xindong-timebank.herokuapp.com

Please try it out and give me a suggestion, thanks!

Gwowen Fu

My profile page

http://gwofu.github.io/

Express.js setup initial project

A good place to start:

Node.js tutorial for beginners – an introduction to Node.js with Express.js

>express myApp –hogan -c less

>cd myApp

Check less-middleware version
>npm show less-middleware version

Before run npm install, open package.json and replace
“less-middleware”: “*” to
“less-middleware”: “~0.1.15″

>npm install

Install nodemon
>npm install -g nodemon

Start myApp
>nodemon myApp

Liferay – Javascript API – Session object

AUI().use('liferay-session', function(A) {
  var session = new Liferay.SessionBase();
})

Liferay – Use AngularJS in portlet

The simplest way to try AngularJS in Liferay is to include it in portlet.
Add a Web Content Display portlet to a page and copy and paste the following example code to content:

<script>
AUI().use('get', function(A){
    A.Get.script('http://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js', {	});
});
</script>
<div ng-app=""><label>Name:</label> <input ng-model="yourName" placeholder="Enter a name here" type="text" />
<hr />
<h1>Hello {{yourName}}!</h1>
</div>

Liferay – use Handlebars

Delete or replace Handlebars.js on line 6.

Handlebars.js in-line template

Use handlebars.js in-line tempalte for HTML output.

Follow

Get every new post delivered to your Inbox.