thunder with requirejs
This example demonstrates how it works with requirejs.
Make sure you have thunder installed in the global.
$ npm install thunder -g
Clone the repo from github
$ git clone https://github.com/dreamerslab/thunder.git
Here we use express as our server. Go to
example/requirejs and type the following command
$ npm install
You do not have to have the same project structre as this example. It can be customised in
views/layout.ejs, please check requirejs for detail.
Make sure you have these libs in the
public/js/libs dir( jQuery is not necessary ).
Start the server and go to 127.0.0.1:3000 on your browser.
$ node app.js