Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.52 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.52 KB

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