Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 96976a32db

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
public/js
routes
views
README.md
app.js
package.json

README.md

thunder with requirejs

This example demonstrates how it works with requirejs.

Steps

Install thunder

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

Install dependency

Here we use express as our server. Go to example/requirejs and type the following command

$ npm install

Project structure

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.

Required libs

Make sure you have these libs in the public/js/libs dir( jQuery is not necessary ).

Run server

Start the server and go to 127.0.0.1:3000 on your browser.

$ node app.js
Something went wrong with that request. Please try again.