You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
3.2 KiB

10 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. Addressbook Tutorial
  2. ====================
  3. This tutorial teaches you some of the basic concepts in [Vaadin Framework](https://vaadin.com). It is meant to be
  4. a fast read for learning how to get started - not an example on how application should be
  5. designed. Please note this example uses and requires Java 8 to work.
  6. ![Addressbook Screenshot](addressbook_screenshot.png "Addressbook Screenshot")
  7. Running the example from the command line
  8. -------------------
  9. ```
  10. $ mvn jetty:run
  11. ```
  12. Open [http://localhost:8080/](http://localhost:8080/)
  13. Importing in IntelliJ IDEA 14
  14. --------------------
  15. These instructions were tested on IntelliJ IDEA 14 CE. You can get it from https://www.jetbrains.com/idea/
  16. To get the project up and running in IDEA, do:
  17. - File -> New -> Project from Version Control -> Git
  18. - The URL to use is https://github.com/vaadin/addressbook.git
  19. - If you get a message about "Non-managed pom.xml file found". Choose "Add as Maven Project"
  20. - 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
  21. - To start the project, find the "Maven Projects" tab on the right hand side of the screen and navigate to
  22. - Vaadin Web Application -> Plugins -> jetty -> jetty:run
  23. - Click the play button or right click and select Run (Select Debug instead to run in debug mode)
  24. You should now have a Jetty server running on localhost:8080. Navigate to http://localhost:8080 to play with the application
  25. Importing in NetBeans 8
  26. --------------------
  27. These instructions were tested on NetBeans 8.0.2. You can get it from https://www.netbeans.org
  28. To checkout and run the project in NetBeans, do:
  29. - Team -> Git -> Clone
  30. - Set repository URL to https://github.com/vaadin/addressbook.git
  31. - Finish
  32. - Right click the imported project (Vaadin Addressbook Application) and select Run
  33. - Select GlassFish Server 4.1 -> Remember in Current IDE Session -> OK
  34. You should now have a GlassFish server running on localhost:8080 and a browser tab should also be automatically opened with this location
  35. Importing in Eclipse
  36. --------------------
  37. These instructions were tested on Eclipse IDE for Java EE Developers Luna SR2. You can get it from http://eclipse.org/downloads/
  38. To checkout and run the project in Eclipse, do:
  39. - File -> Import...
  40. - Check out Maven Projects from SCM
  41. - Choose Git from SCM menu
  42. - 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.
  43. - Set the repository URL to https://github.com/vaadin/addressbook.git
  44. - Right click the imported "addressbook" and choose Run As -> Maven Build...
  45. - Set the goal to "jetty:run" and click "Run"
  46. You should now have a Jetty server running on localhost:8080. Navigate to [http://localhost:8080/](http://localhost:8080/) to play with the application
  47. To use the built in server adapters of Eclipse, instead of doing "Run As -> Maven Build..." you can do
  48. - Run As -> Run on Server
  49. - Select the server you want to run on, e.g. Apache Tomcat 8 and click ok
  50. - *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
  51. *** End of documentation