The sample code I've presented in the meetup
Java HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
cli_demo.png
pom.xml
postman_create_customer.png
postman_get_customer_list.png
postman_login.png

README.md

ActFramework Demo App

This is the application I've presented on Sydney JVM Meetup

How to run it:

  1. Start the app

    mvn clean compile exec:exec
    
  2. Check browser: open http://localhost:5460

  3. Check console:

    telnet localhost 5461
    help
    cust.list
    

    cli-demo

  4. Login

    This app has built-in very simple authentication, you will get redirected to login page if you haven't logged in. Just type in any username and any password string contains "act" to login

  5. Create customer

    Use tool like Postman to help you create customer:

    postman-create-customer

    Note before create customer in postman, make sure you login in postman. Just post to /login with username and password parameter to login

    postman-login

  6. Get customer

    post-get-customer-list

Code size

http://cloc.sourceforge.net v 1.60  T=0.03 s (343.1 files/s, 10602.5 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Java                             5             40             15            175
HTML                             5              0              0             79
-------------------------------------------------------------------------------
SUM:                            10             40             15            254
-------------------------------------------------------------------------------