Skip to content

Latest commit

 

History

History
91 lines (75 loc) · 3.91 KB

README.md

File metadata and controls

91 lines (75 loc) · 3.91 KB

Pulsar by Example

Overview

This repository contains example modules for the Pulsar application server.

Workspace setup

Prerequisites which must be installed prior to setting up the workspace

  • Git (must be present on shell path)
  • Apache Ant (must be present on shell path)
  • Oracle JDK 7 (must be present on shell path)

Optional

  • Jetbrains IntelliJ IDEA, Community Edition or better.
    • The workspace configuration assumes that JDK 7 is configured as a SDK in IntelliJ, and named "1.7".

Installing the workspace

  • Fork the pulsar-by-example repository to your own GitHub account

  • Clone the repository to your local machine, and set up push to your own fork (optional)

    cd <local machine project directory>

    git clone https://github.com/DSE-AB/pulsar-by-example.git

    cd pulsar-by-example

    git remote set-url --push origin https://github.com/*Your-GitHub-User-Name-Here*/pulsar-by-example.git (optional)

  • Run the setup script. Note: Since the Pulsar environment is downloaded the first time this step may take som time to complete.

    ant -f script/setup-workspace.xml

  • Open the top project directory (LEB_System) with IntelliJ IDEA. Note: You need to open IDEA, then select Open Project from the splash menu (or choose Open... from the file menu) and navigate to select the directory.

Running the examples

  • First you need to build the examples, the simplest way is to use the Ant build script master-build/dist-all which will compile and package (dist) all the example modules.
  • Start the ´Pulsar (developer)` Run Configuration in Intellij
  • When the ´AdminConsole´ opens click the ´Install´ tab and install the ´pulsar.devtools.wiki´ module
  • When the module is installed navigate you browser to the page /pulsar/wiki/index.html (The default port for Pulsar is 8080, if that is not available Pulsar will use 8081 instead.)

Project Structure

Below you find a description of the project structure. This description doesn't include all directories but aims to provide a general guide. Also there are some documented directories that are not yet part of the workspace.

<top>
|- .git                 Git Version Control (never modify files here manually)
|- .idea                IntelliJ project configuration files. Normally these should not be edited manually.
|                       All files except workspace.xml are under version control
|- .idea-conf           IntelliJ module configuration files. Only changed when module dependencies are changed.
|- .gitignore           Git Ignore instructions
|- README.md            This documentation
|- dev-tools
|- dist*                Destination for top level package artifacts
|- lib
|   |- test
|   |- tools
|- examples
    |- 1-chatter-base
        |- chatter-api
        |- chatter-server
        |- chatter-shellui
    |- 2-chatter-html
        |- chatter-htmlui
    |- 3-chatter-spaui
        |- chatter-spaui
    |- 4-chatter-store
        |- chatter-store
|- script
|   |- setup-workspace.xml
|   
|   
|- pulsar*                                              Local developer instance of the Pulsar Application Server
    |- .pulsar-runtime
    |- lib-devel                                        Libraries needed during development of Pulsar modules.
    |- script
    |- logs
    |- conf                                             Logging configuration etc
    |- pulsar.launcher-v.v.v.jar    
    |- pulsar-modules-v.v.v.pulsar 
    |- pulsar-apps-v.v.v.pulsar 
    |- pulsar-endorsed-v.v.v.pulsar
    |- local-dev-link.pulsarlink

* = excluded from version control
^ = IntelliJ Module