|
| 1 | += Tutorial for the Jump The Queue Application |
| 2 | +==== |
| 3 | +Jump The Queue is a small application based on the devonfw framework, which you can create yourself by following our simple step-by-step tutorial. By doing so, you will learn about the app development workflow and gain insight into the design of a professional business information system. |
| 4 | +
|
| 5 | +More information about Jump The Queue on https://github.com/devonfw/jump-the-queue |
| 6 | +==== |
| 7 | + |
| 8 | +[step] |
| 9 | +-- |
| 10 | +restoreDevonfwIde(["java", "mvn", "node", "ng", "npm"]) |
| 11 | +-- |
| 12 | + |
| 13 | +Make sure to install the devonfw IDE before executing the next steps. For this tutorial we have done it for you. |
| 14 | +Afterwards clone the Jump-The-Queue Repository. |
| 15 | +[step] |
| 16 | +-- |
| 17 | +cloneRepository("", "https://github.com/devonfw/jump-the-queue.git") |
| 18 | +-- |
| 19 | + |
| 20 | +==== |
| 21 | +[step] |
| 22 | +== Build and Run Java Server |
| 23 | +-- |
| 24 | +buildJava("jump-the-queue/java/jtqj", true) |
| 25 | +runServerJava("jump-the-queue/java/jtqj/server", { "startupTime": 40, "port": 8081, "path": "jumpthequeue" }) |
| 26 | +-- |
| 27 | +Now the Java Server should be running. |
| 28 | +==== |
| 29 | + |
| 30 | +In the next steps we want build and run the Angular Frontend Server. For that you need to install the dependencies first. |
| 31 | +[step] |
| 32 | +-- |
| 33 | +npmInstall("jump-the-queue/angular") |
| 34 | +-- |
| 35 | + |
| 36 | +==== |
| 37 | +Now build and run the Anguar Server. |
| 38 | +The following two steps are only needed in this tutorial. Normally you can simply execute "ng serve", open the https://localhost:4200/ and start using the app. |
| 39 | +In the next step you need to change the Base URL for the REST Services. |
| 40 | +[step] |
| 41 | +== Serve the Frontend Server |
| 42 | +-- |
| 43 | +changeFile("jump-the-queue/angular/src/environments/environment.ts", {"content": "https://[[HOST_SUBDOMAIN]]-8081-[[KATACODA_HOST]].environments.katacoda.com/jumpthequeue/services/rest", "placeholder": "http://localhost:8081/jumpthequeue/services/rest"}) |
| 44 | +runClientNg("jump-the-queue/angular", { "startupTime": 200, "port": 4200, "path": "" }) |
| 45 | +-- |
| 46 | +Now the Angular Frontend Server should be running. |
| 47 | +==== |
| 48 | + |
0 commit comments