zkoss-demo / zk10-shopping-cart-demo

ZK 10 is ready for building Cloud-Native Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZK 10 shopping cart demo

An example application that demonstrates basic stateless component usages. See Building Stateless UI.

Prerequisites to run with Docker

Install Docker and Docker Compose

How to run

Run locally without a database

  1. set debug=true in config.properties
  2. run with ./gradlew appRun

visit http://localhost:8080/zk10-shopping-cart-demo/shoppingCart

Run War

Run with ./gradlew war in terminal

Note: make sure ./build/libs/shopping_cart_demo.war exist.

Run docker containers for development

Run with cd ./docker in terminal

  • $ docker-compose up -d: create and start the containers in background
  • $ docker-compose down -v: stop and remove the containers with all its volumes

After docker compose start, application can be accessed in http://localhost/shoppingCart

Publish as Demo

  1. build with gradle clean war
  2. upload to one of test server
  3. publish with update_war

Licence

About

ZK 10 is ready for building Cloud-Native Application


Languages

Language:Java 96.0%Language:CSS 3.8%Language:Shell 0.2%