Home > js-databinding

js-databinding

Js-databinding is a project mainly written in JAVASCRIPT and JAVA, it's free.

JavaScript Databinding

JavaScript Databinding

Description

This is a sample application that shows the usage of Angular as databinding layer.

UI

The ui contains the following:

  • index.html: UI-Template for angular
  • js/controller.js: Contains the CustomerController
  • js/services.js: Contains the customerService to talk with the backend.
  • js/validators.js: Contains the simpleName validator

Backend

The backend is a simple servlet that stores data in memory.

  • A POST to /js-databinding/rest/customer/* will create a new customer, assign an id and return the new customer
  • A GET to /js-databinding/rest/customer/<id> will load the customer with the given id

Project-Setup

This is a default maven WAR project. The jetty is configured so that it does an overlay between the directories src/main/webapp and src/test/webapp.

Tests are executed in the integration-test phase, as some of them need a backend for REST calls.

The js-test-driver server can be started via the jstd-server.sh command.

The tests can be run via the jstd-client.sh command.

The tests may also be run in the jasmine html runner via the url http://localhost:8080/js-databinding/SpecRunner.html

Maven-Configuration

Please set the location of the browser(s) that should be used for the js-test-driver tests in the envirnoment variable JSTD_BROWSER before running the maven build.

Links

See Jasmine-UI for a framework to support ui tests. See Angular for the Homepage of Angular.

Previous:CozyBed