Skip to content
/ corn Public

Vertx apps - Unicorn and multicorn. Experimental autocomplete implementation running as a trivial vertx verticals.

Notifications You must be signed in to change notification settings

iosshaun/corn

Repository files navigation

corn

Unicorn and multicorn. An experimental autocomplete/suggest implementation implemented in javascript and
running as vertx verticals.

A simple textfield is presented that when typed into will suggest completions based on a list of known words. The resulting suggestions are simple rendered on the html document. No fancy HTML is implemented.

The list of words always remains on the server; therfore one client can add to the list and then another
can find the result.

Live example.

https://ec2-54-252-185-58.ap-southeast-2.compute.amazonaws.com/

https://ec2-54-252-185-58.ap-southeast-2.compute.amazonaws.com/list

Arch

[html ui] -> http request -> [verticle1] -> esb -> [verticle2] -> esb -> [vertical1] -> http response-> [html ui]

Runnable module with config

(note -cluster-host and conf.json IP addresses should match):

vertx runzip org.etherware.vertx~corn~0.1.zip -cluster -cluster-host 192.168.5.30 -conf conf.json

Urls:

List all items

https://192.168.5.30:8080/list

Show the search page

https://192.168.5.30:8080

Search for items with prefix shaun

https://192.168.5.30:8080/search/shaun

Add an item

https://192.168.5.30:8080/add/new item

About

Vertx apps - Unicorn and multicorn. Experimental autocomplete implementation running as a trivial vertx verticals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published