jenjin icon indicating copy to clipboard operation
jenjin copied to clipboard

How do I run the demo?

Open sieira opened this issue 9 years ago • 2 comments

Sorry for bothering you

I've built your project, and now I have :

├── build
│   ├── libs
│   │   └── jenjin-demo-0.7.0-alpha.jar
│   └── tmp
│       └── jar
│           └── MANIFEST.MF
├── jenjin-demo-client
│   ├── build
│   │   ├── classes
│   │   │   └──   ...
│   │   ├── dependency-cache
│   │   ├── libs
│   │   │   └── jenjin-demo-client-0.7.0-alpha.jar
│   │   ├── resources
│   │   │   └── ...
│   │   └── tmp
│   │       └── jar
│   │           └── MANIFEST.MF
│   ├── build.gradle
│   └── src
│       └── ...
└── jenjin-demo-server
    ├── build
    │   ├── classes
    │   │   └── ...
    │   ├── dependency-cache
    │   ├── libs
    │   │   └── jenjin-demo-server-0.7.0-alpha.jar
    │   ├── resources
    │   │   └── ...
    │   └── tmp
    │       └── jar
    │           └── MANIFEST.MF
    ├── build.gradle
    └── src
        └── ...

How do I run it ? I can't find any Main in the jars, and the manifests are empty...

sieira avatar Sep 09 '15 10:09 sieira

Hi there!

I haven't worked on this project in a while, and it's still very much a work in progress. Unfortunately I can't guarantee that the demo will be stable (or that it will even work at all anymore) since I've made quite a few changes since I built it. However if you want to try it anyway, read on.

Building the execution scripts

From the root project directory, run ./gradlew installApp

After that completes, you should have the following directories:

jenjin/jenjin-demo/jenjin-demo-server/build/install/jenjin-demo-server
jenjin/jenjin-demo/jenjin-demo-client/build/install/jenjin-demo-client

The installApp task basically creates a shell script that runs the JAR files for you, and correctly adds the dependencies to the classpath.

Server

To run the demo server, run this command from the project root: jenjin/jenjin-demo/jenjin-demo-server/build/install/jenjin-demo-server/bin/jenjin-demo-server

This will start a demo server on port 51015 with an in-memory database populated with users like so:

Username Password
TestAccount1 testPassword
TestAccount2 testPassword
TestAccount3 testPassword

And so on, up to TestAccount99.

Client

To run the client, run this command from the project root directory: jenjin-demo/jenjin-demo-client/build/install/jenjin-demo-client/bin/jenjin-demo-client

I must stress that I don't know if this is stable or if will even run, but if all goes well you should see a popup requesting login information; it will already be filled out with default values which should work with the demo server, assuming you're running both on the same machine.

floralvikings avatar Sep 09 '15 13:09 floralvikings

Also, I've been working on a total redesign of most of the project which will include new, (hopefully) better demos; if you watch this repository, the branch the-great-refactoring is the one containing these changes. It's even less stable at the moment because I haven't had much time to work on it, but when I merge it into master I'll make sure to add demos to it as well.

floralvikings avatar Sep 09 '15 13:09 floralvikings