Skip to content

codebulb/crudletdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crudletdemo

CRUD REST-to-SQL demo application.

For use with

including an AngularJS / Restangular web client which is compatible with any of these servers.

Usage instructions

Client

Default Node.js setup. Load dependencies with npm / bower; start application with grunt.

Setup Restangular's REST endpoint before startup:

Using the default Java EE server setup:

RestangularProvider.setBaseUrl('http://localhost:8080/CrudletDemo.server/');

Using the default Node.js server setup:

RestangularProvider.setBaseUrl('http://localhost:3000');

###Server

With Crudlet

In order to run the web application locally, you need to setup a JTA data source in your webapp server according to the persistence.xml configuration.

If you want to use a MySQL database on your Glassfish server (rather than a Derby in-memory one), these instructions may be helpful:

  • Copy the MySQL driver JAR to your Glassfish installation as explained here.
  • (If you happen to use the NetBeans IDE, you can easily locate the MySQL driver JAR it uses internally in order to copy this very file to your Glassfish installation.)
  • Then, configure your Glassfish server as explained here.

Find out more about the framework here.

For Node.js + Hapi + Bookshelf server

Get the demo server implementation here. It is fully compatible with the client from this project.

For Node.js + hapi-bookshelf-crud

Get the demo server implementation here. It is fully compatible with the client from this project.

Find out more about the framework here.

About

Demo application of the Crudlet REST framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published