-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Jan 10, 2017
0 parents
commit c986b9e
Showing
28 changed files
with
3,726 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
Addressbook Tutorial | ||
==================== | ||
|
||
This tutorial teaches you some of the basic concepts in [Vaadin Framework](https://vaadin.com). It is meant to be | ||
a fast read for learning how to get started - not an example on how application should be | ||
designed. Please note this example uses and requires Java 8 to work. | ||
|
||
 | ||
|
||
|
||
Running the example from the command line | ||
------------------- | ||
``` | ||
$ mvn jetty:run | ||
``` | ||
|
||
Open [http://localhost:8080/](http://localhost:8080/) | ||
|
||
|
||
Importing in IntelliJ IDEA 14 | ||
-------------------- | ||
These instructions were tested on IntelliJ IDEA 14 CE. You can get it from https://www.jetbrains.com/idea/ | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
To get the project up and running in IDEA, do: | ||
- File -> New -> Project from Version Control -> Git | ||
- The URL to use is https://github.com/vaadin/addressbook.git | ||
- If you get a message about "Non-managed pom.xml file found". Choose "Add as Maven Project" | ||
- 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 | ||
- To start the project, find the "Maven Projects" tab on the right hand side of the screen and navigate to | ||
- Vaadin Web Application -> Plugins -> jetty -> jetty:run | ||
- Click the play button or right click and select Run (Select Debug instead to run in debug mode) | ||
|
||
You should now have a Jetty server running on localhost:8080. Navigate to http://localhost:8080 to play with the application | ||
|
||
Importing in NetBeans 8 | ||
-------------------- | ||
These instructions were tested on NetBeans 8.0.2. You can get it from https://www.netbeans.org | ||
|
||
To checkout and run the project in NetBeans, do: | ||
- Team -> Git -> Clone | ||
- Set repository URL to https://github.com/vaadin/addressbook.git | ||
- Finish | ||
- Right click the imported project (Vaadin Addressbook Application) and select Run | ||
- Select GlassFish Server 4.1 -> Remember in Current IDE Session -> OK | ||
|
||
You should now have a GlassFish server running on localhost:8080 and a browser tab should also be automatically opened with this location | ||
|
||
Importing in Eclipse | ||
-------------------- | ||
These instructions were tested on Eclipse IDE for Java EE Developers Luna SR2. You can get it from http://eclipse.org/downloads/ | ||
|
||
To checkout and run the project in Eclipse, do: | ||
- File -> Import... | ||
- Check out Maven Projects from SCM | ||
- Choose Git from SCM menu | ||
- 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. | ||
- Set the repository URL to https://github.com/vaadin/addressbook.git | ||
- Right click the imported "addressbook" and choose Run As -> Maven Build... | ||
- Set the goal to "jetty:run" and click "Run" | ||
|
||
You should now have a Jetty server running on localhost:8080. Navigate to [http://localhost:8080/](http://localhost:8080/) to play with the application | ||
|
||
To use the built in server adapters of Eclipse, instead of doing "Run As -> Maven Build..." you can do | ||
- Run As -> Run on Server | ||
- Select the server you want to run on, e.g. Apache Tomcat 8 and click ok | ||
- *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 | ||
|
||
*** End of documentation |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
# Copyright 2015, Seshagiri Sriram. All rights reserved. | ||
# | ||
# Created on: Feb 02, 2015, Seshagiri Sriram | ||
# Updated: June 20,2016 fixed some property paths.. | ||
# File Name : build.properties | ||
# | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
# ****** NOTE: ALL PARAMETERS AND VALUES IN THIS FILE ARE CASE SENSITIVE ****** | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
# Properties file | ||
# Modify the following properties before calling the ant build | ||
# | ||
# This build drops all the existing directories (mentioned in this properties file) before creating them | ||
# The JAR file structure created by this build is | ||
# |-- ReportGenerator.jar This is defined in build.xml | ||
# | |-- META-INF | ||
# |-- lib Third party jars | ||
# |-- All property files go in here..... | ||
# | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
# Build Details | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
# The below are general for *** ALL *** Projects and defined inside build.xml or passed via -D options. DO NOT CHANGE | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
# |Property Description | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
# |build.basesrcdir Location where the project is found. Passed to this script via -Dbasesrcdir=<value> | ||
# |maven.build.finalName Final name - hardcoded into build.xml e.g. X-1.0.0-SNAPSHOT.jar | ||
# |maven.build.dir Location relative to buildsrcdir where build will be done. usually target | ||
# |maven.build.outputDir Usually target/classes. | ||
# |maven.build.srcdir location of source under buid.basesrcdir | ||
# |maven.build.resourceDir location of resources under build.basesrcdir | ||
# |maven.build.testDir Location of test classes | ||
# |maven.build.testResourceDir Location of test resources | ||
# |maven.build.testOutputDir Location of test class compilation | ||
# |maven.test.reports Where test reports (from JUNIT) will be located. | ||
# |maven.build.pmddir Location where PMD rules and XSL will belocated. | ||
# |maven.reporting.outputDirectory Location of reports from PMD | ||
# |project.3rdpartylibdir lib under build.basesrcdir | ||
# |build.type dev,qa, or prod. passed via -Dbuildtype={dev|qa|prod} | ||
# |environment.type.default Value if build.type is not passed. defaults to dev -- DO NOT CHANGE | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
# Per User configuration..... Change for local environmnent | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
# | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
ant.home=c:/Apps/ant | ||
project.build.outputDirectory=${maven.build.outputDir} | ||
project.build.directory=${maven.build.dir} | ||
maven.repo.local=e\:/repos | ||
maven.settings.offline=false | ||
project.build.sourceEncoding=UTF-8 | ||
maven.settings.interactiveMode=false | ||
maven.build.version=V1.2 | ||
maven.test.skip=false | ||
pmd.installpath=c:/Apps/pmd-bin-5.2.3/lib | ||
# ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Oops, something went wrong.
importu