Skip to content

An Emberjs component implementation that wraps jQuery-DataTables and demos this component's usage in an app that manages a collection of IT-ebooks. To access this demo, please visit the below website:

License

Notifications You must be signed in to change notification settings

knshetty/emberjs-component-jquerydatatables-example

Repository files navigation

An Example App: Emberjs-jquery-datatables Component

This project wraps jQuery-DataTables as an ember-component within an ember-cli project template. In doing so, this project acts as a demo application which uses this ember-component to render interactable datatable. Here, the interactions refers to CRUD operations on the rendered dataset. Click on the link to access the online demo app.

Prerequisites

You will need the following things properly installed on your computer.

Version Used In Development Environment

  • ember-cli version: 0.1.2
  • node: 0.10.32
  • npm: 2.1.3

Installation

  • git clone https://github.com/knshetty/emberjs-component-jquerydatatables-example.git
  • cd emberjs-component-jquerydatatables-example
  • npm install
  • bower install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Note! As of now, there are no unit tests written for this project.

Building

  • ember build (development)
  • ember build --environment production (production)

How To Bootstrapped This Ember-cli Project From Scratch

###Step1: Setup ember-cli project A. Create an ember-cli project $ ember new emberjs-component-jquerydatatables-example $ cd emberjs-component-jquerydatatables-example/ $ npm install && bower install

B. Manage your dependcies
	$ bower install bootstrap --save
	$ bower install datatables --save
	$ bower install datatables-bootstrap3 --save

C. Install build toolchain
	$ npm install --save-dev broccoli-merge-trees
	$ npm install --save-dev broccoli-static-compiler
	$ ember build

D. Setup project-build environment
	Configure 'Brocfile.js' for the build, which includes the following depedencies:
	i. "Bootstrap3" UI framework's dependencies
	ii. "Jquery.dataTables" dependencies
	iii. "Datatables-Bootstrap3" dependencies

E. Setup content security policy
	Enable content security policy in-order to download external resources, such as images. Configuration is carried out in 'config/environment.js' by setting the below property:

		var ENV = {
			...
			contentSecurityPolicy: {'img-src': "'self' s.it-ebooks-api.info"},
			...
		}

F. Conduct a basic smoke test
	$ ember server
	Visit the running app at http://0.0.0.0:4200/emberjs-component-jquerydatatables-example

###Step2: Enable CoffeeScript (instead of JavaScript): Install ember-cli CoffeeScript code generator $ npm install ember-cli-coffeescript --save-dev

Useful Links

About

An Emberjs component implementation that wraps jQuery-DataTables and demos this component's usage in an app that manages a collection of IT-ebooks. To access this demo, please visit the below website:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published