Skip to content

Incomplete example of mostly vanilla JS TodoMVC client that uses RESTful services such as todomvc-services-javaee6

License

Notifications You must be signed in to change notification settings

garysweaver/todomvc-vanillajs-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TodoMVC Javascript Client for RESTful Services

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.

Setup

Please see the todomvc-services-javaee6 project and do that setup, build, and deploy. Then come here and do the build and deploy.

Build

mvn clean install

Deploy

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/

Testing

http://localhost:8080/todomvc-vanillajs-restful/

Issues

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

License

Copyright (c) 2012 Gary S. Weaver, released under the MIT license.

About

Incomplete example of mostly vanilla JS TodoMVC client that uses RESTful services such as todomvc-services-javaee6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published