Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.3 KB

README.md

File metadata and controls

39 lines (32 loc) · 1.3 KB

DataTables.net and Node.js with Bootstrap

This is an example data provider implementation for datatables.net server-side processing with node.js.
It works like the existing php data provider.

The example uses the following components:

Setup

  • Clone the repo and setup the environment
    $ git clone git://github.com/meip/datatables-node.git
    
  • This examples used bootstrap as a git-submodule
    $ cd cd static/css/libs/bootstrap/
    
    $ ln -s ../../../../bootstrap/less/* .
    

Quick Start

  • Install dependencies for node

    $ cd nodejs
    $ npm install
    
  • Install datatables.net MySQL sample database

  • Configure the database connection in server.js

  • Run the server

    $ node server.js
    
  • Open server_node.html in your browser (may use Google Chrome to prevent cross-domain problems)