CRUD REST-to-SQL demo application.
For use with
- a Java EE server with Crudlet 0.2 REST framework (included, find out more about the framework here)
- a Node.js + Hapi + Bookshelf server (get the demo server here)
- a Node.js server with hapi-bookshelf-crud 0.2.0 REST framework (get the demo server here; find out more about the framework here)
including an AngularJS / Restangular web client which is compatible with any of these servers.
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
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.
Get the demo server implementation here. It is fully compatible with the client from this project.
Get the demo server implementation here. It is fully compatible with the client from this project.