An example of TodoMVC client that uses RESTful services such as todomvc-services-javaee6.
Based on VanillaJS (plain Javascript) TodoMVC implementation, but using JQuery for some of the Ajax for now.
Even though it is just HTML, Javascript, and CSS and could be hosted anywhere on the same host and port, it is packaged as war for now, so it can be easily deployed to same JBoss server as todomvc-services-javaee6. Later when I have time to test out with CORS, it may be hosted separately.
Has been tested in JBoss 7.1.1.Final in OS X 10.7.4.
Please see the todomvc-services-javaee6 project and do that setup, build, and deploy. Then come here and do the build and deploy.
mvn clean install
If you cloned the todomvc-services-javaee6 and this project into the same dir, and put jboss into the other project's directory, you'd do this. Otherwise, just change the path:
cp target/todomvc-vanillajs-restful.war ../todomvc-services-javaee6/jboss-as-7.1.1.Final/standalone/deployments/
http://localhost:8080/todomvc-vanillajs-restful/
The following should work, at least if the todomvc-services-javaee6 and this war have the same host/port:
- Adding a Todo
- Removing a single Todo
- Marking/unmarking a single Todo as completed
What doesn't work yet:
- Editing a Todo (title)
- Marking all Todo's as completed
- Deleting all Todo's that are completed
Copyright (c) 2012 Gary S. Weaver, released under the MIT license.