The Affable Bean application with HTML5 front-end
The original tutorial can be found at http://netbeans.org/kb/docs/javaee/ecommerce/intro.html. If you want to run this project you should follow the tutorial parts which setup MySQL database and populate it. Once the database is up and running and registered in the IDE you should have no problems running this project. NetBeans IDE 7.3 and GlassFish 220.127.116.11 are the recommended tools to use.
Project has two top level directories: server and client.
The server folder contains slightly modified version of the original Affable Bean app. The changes are:
- rest package added with two rest services
- rest/filter package added with CORS filter
- web.xml uses Jersey REST servlet
The client folder demonstrates how client can be written using AngularJS framework. Check app/js/services.js if you need to adjust URL to your REST service. There is also an option to use offline static files instead of connecting to remote REST service. Similarly you may need to update test/unit/controllersSpec.js.
If you prefer you can download a snaphost of the sources: https://bitbucket.org/dkonecny/affable-bean/get/tip.zip
Questions or problems?
Do not hesitate to contact me at email@example.com.