Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions JumpTheQueue/index.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
= Tutorial for the Jump The Queue Application
====
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.

More information about Jump The Queue on https://github.com/devonfw/jump-the-queue
====

[step]
--
restoreDevonfwIde(["java", "mvn", "node", "ng", "npm"])
--

Make sure to install the devonfw IDE before executing the next steps. For this tutorial we have done it for you.
Afterwards clone the Jump-The-Queue Repository.
[step]
--
cloneRepository("", "https://github.com/devonfw/jump-the-queue.git")
--

====
[step]
== Build and Run Java Server
--
buildJava("jump-the-queue/java/jtqj", true)
runServerJava("jump-the-queue/java/jtqj/server", { "startupTime": 40, "port": 8081, "path": "jumpthequeue" })
--
Now the Java Server should be running.
====

Comment thread
MarcelDiessner marked this conversation as resolved.
In the next steps we want build and run the Angular Frontend Server. For that you need to install the dependencies first.
[step]
--
npmInstall("jump-the-queue/angular")
--

====
Now build and run the Anguar Server.
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.
In the next step you need to change the Base URL for the REST Services.
[step]
== Serve the Frontend Server
--
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"})
runClientNg("jump-the-queue/angular", { "startupTime": 200, "port": 4200, "path": "" })
--
Now the Angular Frontend Server should be running.
====

2 changes: 1 addition & 1 deletion cobigen/files/Placeholder.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ public String getCompany() {
}
public void setCompany(String company) {
this.company = company;
}
}