Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I run the demo? #234

Open
sieira opened this issue Sep 9, 2015 · 2 comments
Open

How do I run the demo? #234

sieira opened this issue Sep 9, 2015 · 2 comments

Comments

@sieira
Copy link

sieira commented Sep 9, 2015

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...

@floralvikings
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants