Learn how you can build complex Web-Applications within minutes using TeamApps.
The Lessons are organised in Modules and Packages. Each Demo
class can be run through its main class.
All Basic Lessons are included in the DemoLessonsApp
- Knowledge of Java
- Interest in learning new concepts
- Maven
- JDK 17+
- IntelliJ IDEA or some other Java IDE
To open this project from Github directly in IntelliJ IDEA use the following steps:
- Start IntelliJ IDEA
- File > New > Project from Version Control...
- Paste git URL of this Project (On Github click the green Button above "Clone or download", then copy the url)
- Click Clone in IntelliJ dialogue
Project will be cloned to the specified directory and opened.
First we need to install the necessary dependencies using Maven. This can take some time if this is the first time you use TeamApps.
- IntelliJ will prompt you to Import the Maven project or automatically import it.
- In your IntelliJ IDEA Workspace, open the Maven Toolbox on the right.
- Doubleclick on demo-lessons > Lifecycle > install
If all works right, you should see BUILD SUCCESS in the Console window
To enable Auto completion and Validation, IDEA has to know what kind of content is in some Folders.
- Right click
demolessons-basics/src/main/model
> Mark Directory as > Sources Root
Now we can start the DemoLessonsApp from IntelliJ IDEA
- In the Project structure (left side oft the window) open
demolessons-basics/src/main/java/org.teamapps.demolessons
- in the folder (package)
basics
you see the packages for the individual lessons and incommon
the bottom you see theDemoLessonsApp
Class - Right Click >
Debug 'DemoLessonsApp.main()'
- IntelliJ will compile and start the project.
- In the console you should then see the following output in red:
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@491666ad{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
[main] INFO org.eclipse.jetty.server.Server - Started @4176ms
This means that the DemoLessonsApp is running and the Server is listening on Port 8081. You can access the Application using your Browser on: http://localhost:8081
- Open the
...Demo
Class in its package. E.g.demolessons-basics/src/main/java/org.teamapps.demolessons/p1_intro/l01_panel/PanelDemo
- Right click on the Class and click on
Debug 'PanelDemo.main()'
This will start another Server on Port 8080. You can access a single DemoLesson using your Browser on: http://localhost:8080
You can only start one Demo at once, you need to stop the running Demo before you start another App on Port 8080, otherwise you will get the following exception:
Exception in thread "main" java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080
[...]
Caused by: java.net.BindException: Address already in use
The TeamApps Framework is released under version 2.0 of the Apache License.