LDSTechForumProjects

Pet Store Getting Started Guide (IntelliJ IDEA)

« Back to LDS Java Stack

IDE Setup

See Getting Started with IntelliJ IDEA

Pet Store Setup

  1. Checkout the Pet Store Project
    • If you have access to the Internal Stash Repo...
      • Select VCS | Checkout from Version Control | GIT. The Clone Repository dialog will appear.
      • Enter the following Git Repository URL
      • Enter your Git (LDS Account) username and password if the login prompt appears.
      • Set the appropriate Parent Directory and Directory name as you prefer, or accept the defaults.
      • Click Clone
    • If you only have access to the external SVN Repo - note, this version is no longer maintained as of August 2013...
      • Select VCS | Checkout from Version Control | Subversion. The Checkout from Subversion dialog will appear.
      • If the repository https://code.lds.org/svn/stack already appears in the repository list, then move on to the next step, otherwise:
        1. Click the Add button Intellijplus.png
        2. In the Repository URL field, enter https://code.lds.org/svn/stack
        3. Click OK
      • Expand the https://code.lds.org/svn/stack selection in the repository list.
      • Enter your Subversion username and password if the login prompt appears.
      • Expand the https://code.lds.org/svn/stack selection to the path modules/pet-store/trunk
      • Click Checkout
      • Select the directory where you would like to place the pet store code, and click OK
      • On the SVN Checkout Options dialog, accept the defaults and click OK
      • On the Subversion Working Copy Format, accept the default (1.6 format) and click OK
    • After the code is checked out to your computer, a dialog will appear asking if you would like to open the project. Click OK.
    • Additional steps (for versions IntelliJ IDEA 10 and earlier)
      1. Select Import project from external model, then click Next
      2. Select Maven, then click Next
      3. The next step will ask you which directory to create the project from, along with some other settings. Accept the defaults and click Next.
      4. In the Select Maven projects to import, ensure that the pet store project is selected and click Next
      5. Click Next again, and your project should open.
  2. Install Oracle VM
  3. Run Petstore Migration
    • Select the Maven Projects button on the right side of the IDE window
    • Select the Stack Pet Store - DB module of the project
    • Expand the selection to Plugins | stack-db | stack-db:remigrate
    • Right-click on stack-db:remigrate and select the Create "stack-pet-store-db ... option. A Create Run/Debug Configuration dialog will appear.
    • Rename the configuration to something more readable, like "Remigrate Database"
    • Click OK to save the new run configuration.
    • Select the newly-created run configuration from the list of configurations on the main toolbar Intellijrunremigratedatabase.png, then click the Run button Intellijrun.png.
  4. Start WAM Emulator
    • If you have not done so already, create a WAM Emulator run configuration, following the instructions found in the Getting Started guide. The Maven module that you create the configuration against is called Stack Pet Store - UI - QA in the Maven Projects panel.
    • Run the WAM emulator by selecting the WAM emulator run configuration from the list of configurations on the main tool bar Intellijrunstartwamulator.png then clicking the Run button Intellijrun.png.
  5. Create LDSTech Server for stack-pet-store-admin. This is done by following the Creating a Configured Tomcat Instance instructions in the Getting Started guide, using the stack-pet-store-admin-deploy module.
  6. Create LDSTech Server for stack-pet-store-ui. This is done by following the Creating a Configured Tomcat Instance instructions in the Getting Started guide, using the stack-pet-store-ui-deploy module.
  7. Create LDSTech Server for stack-pet-store-ws. This is done by following the Creating a Configured Tomcat Instance instructions in the Getting Started guide, using the stack-pet-store-ws-deploy module.

« Back to LDS Java Stack

This page was last modified on 21 August 2013, at 13:14.

Note: Content found in this wiki may not always reflect official Church information. See Terms of Use.