|
1 | | -Addressbook Tutorial V2.0.1 |
2 | | -==================== |
3 | | - |
4 | | -This tutorial teaches you some of the basic concepts in [Vaadin Framework](https://vaadin.com). It is meant to be |
5 | | -a fast read for learning how to get started - not an example on how application should be |
6 | | -designed. Please note this example uses and requires Java 8 to work. |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | -Running the example from the command line |
12 | | -------------------- |
13 | | -``` |
14 | | -$ mvn jetty:run |
15 | | -``` |
16 | | - |
17 | | -Open [http://localhost:8080/](http://localhost:8080/) |
18 | | - |
19 | | - |
20 | | -Importing in IntelliJ IDEA 14 |
21 | | --------------------- |
22 | | -These instructions were tested on IntelliJ IDEA 14 CE. You can get it from https://www.jetbrains.com/idea/ |
23 | | - |
24 | | -To get the project up and running in IDEA, do: |
25 | | -- File -> New -> Project from Version Control -> Git |
26 | | -- The URL to use is https://github.com/vaadin/addressbook.git |
27 | | -- If you get a message about "Non-managed pom.xml file found". Choose "Add as Maven Project" |
28 | | -- If you get a message about no JDK or SDK being selected. Choose "Configure" and select your installed JDK. You can also set the JDK using File -> Project Structure |
29 | | -- To start the project, find the "Maven Projects" tab on the right hand side of the screen and navigate to |
30 | | - - Vaadin Web Application -> Plugins -> jetty -> jetty:run |
31 | | - - Click the play button or right click and select Run (Select Debug instead to run in debug mode) |
32 | | - |
33 | | -You should now have a Jetty server running on localhost:8080. Navigate to http://localhost:8080 to play with the application |
34 | | - |
35 | | -Importing in NetBeans 8 |
36 | | --------------------- |
37 | | -These instructions were tested on NetBeans 8.0.2. You can get it from https://www.netbeans.org |
38 | | - |
39 | | -To checkout and run the project in NetBeans, do: |
40 | | -- Team -> Git -> Clone |
41 | | -- Set repository URL to https://github.com/vaadin/addressbook.git |
42 | | -- Finish |
43 | | -- Right click the imported project (Vaadin Addressbook Application) and select Run |
44 | | -- Select GlassFish Server 4.1 -> Remember in Current IDE Session -> OK |
45 | | - |
46 | | -You should now have a GlassFish server running on localhost:8080 and a browser tab should also be automatically opened with this location |
47 | | - |
48 | | -Importing in Eclipse |
49 | | --------------------- |
50 | | -These instructions were tested on Eclipse IDE for Java EE Developers Luna SR2. You can get it from http://eclipse.org/downloads/ |
51 | | - |
52 | | -To checkout and run the project in Eclipse, do: |
53 | | -- File -> Import... |
54 | | -- Check out Maven Projects from SCM |
55 | | -- Choose Git from SCM menu |
56 | | - - If you do not see "Git" in the SCM menu, click "Find more SCM connectors in the m2e Marketplace" and install "m2e-egit". Restart Eclipse and start over. |
57 | | -- Set the repository URL to https://github.com/vaadin/addressbook.git |
58 | | -- Right click the imported "addressbook" and choose Run As -> Maven Build... |
59 | | - - Set the goal to "jetty:run" and click "Run" |
60 | | - |
61 | | -You should now have a Jetty server running on localhost:8080. Navigate to [http://localhost:8080/](http://localhost:8080/) to play with the application |
62 | | - |
63 | | -To use the built in server adapters of Eclipse, instead of doing "Run As -> Maven Build..." you can do |
64 | | -- Run As -> Run on Server |
65 | | -- Select the server you want to run on, e.g. Apache Tomcat 8 and click ok |
66 | | -- *Do not use the suggested J2EE Preview server* as it is outdated, deprecated and does not support Servlet 3, which is required for this application |
67 | | - |
68 | | -*** End of documentation |
| 1 | +Sample Java Applicaiton V1.0 |
0 commit comments