Skip to content

Commit e95c3d4

Browse files
committed
INSTALL.md, to be finished
1 parent 14dcca0 commit e95c3d4

2 files changed

Lines changed: 53 additions & 21 deletions

File tree

INSTALL.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Setup Instruction
2+
3+
You may run the demo manually, or by using Nix or Docker.
4+
The manual setup enables you to use DiffDetective in any of your own Maven projects.
5+
The Nix and Docker setups just build the demo for you to run it.
6+
7+
## Manual Setup
8+
9+
Check the requirements needed for the manual setup in the [REQUIREMENTS.md](REQUIREMENTS.md) file.
10+
11+
Follow the setup instructions on the [DiffDetective website](https://variantsync.github.io/DiffDetective/).
12+
These instructions make you clone, the repo and install it.
13+
Afterward, come back here and you should be ready to go.
14+
15+
If you want an empty demo template project to implement the demo yourself, or to use for other purposes, you may
16+
switch to the `empty` branch.
17+
The `main` branch contains the full demo source code, instead.
18+
19+
## Docker Setup
20+
21+
Check the requirements needed for the manual setup in the [REQUIREMENTS.md](REQUIREMENTS.md) file.
22+
23+
You can use the `docker.sh` script to build and execute the Demo using [Docker](https://www.docker.com/get-started).
24+
25+
### Required software
26+
27+
### Hints for Linux users
28+
The following hints apply for most Linux users:
29+
> You might require elevated privileges to execute Docker commands (e.g., `sudo ./docker.sh build` or adding the user to the `docker` or `wheel` group).
30+
> See the [post-installation steps](https://docs.docker.com/engine/install/linux-postinstall/) for more information.
31+
32+
> It is best to install required software (e.g., Docker, Maven) using your distro's package manager if it is available.
33+
34+
### Setup
35+
Simply build the image using the provided script:
36+
```shell
37+
./docker.sh build
38+
```
39+
40+
### Execution
41+
Once the image has been build, you can start the demo with
42+
```shell
43+
./docker.sh demo
44+
```
45+
46+
## Nix Setup

README.md

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
11
# DiffDetective-Demo
22

3-
A small demonstration of [DiffDetective](https://github.com/VariantSync/DiffDetective).
4-
The demo is a Java maven project, which includes DiffDetective as a library.
3+
A small demonstration of [DiffDetective](https://github.com/VariantSync/DiffDetective). The demo is a Java Maven project, which includes DiffDetective as a library.
4+
You may run the demo manually, or by using Nix or Docker.
5+
The manual setup enables you to use DiffDetective in any of your own Maven projects.
6+
The Nix and Docker setups just build the demo for you to run it.
57

68
This demo comes with a screencast available on YouTube, guiding you through the demo's setup with Maven in IntelliJ and how to implement variability-aware differencing and analyses of Git histories:
79

810
[![DiffDetective Demonstration](docs/yt_thumbnail.png)](https://www.youtube.com/watch?v=q6ight5EDQY)
911

10-
11-
## Setup Steps
12-
13-
### Install Required software:
14-
- [Maven](https://maven.apache.org/) which is also integrated in [Eclipse](https://projects.eclipse.org/projects/technology.m2e) and [Intellij](https://www.jetbrains.com/help/idea/maven-support.html)
15-
- [JDK](https://www.oracle.com/java/technologies/downloads/) 16 or newer
16-
- [graphviz](https://graphviz.org/download/)
17-
18-
### Install DiffDetective
19-
Follow the setup instructions on the [DiffDetective website](https://variantsync.github.io/DiffDetective/).
20-
These instructions make you clone the repo and install it.
21-
After installing DiffDetective, you can use it in any of your maven projects, including this demo.
22-
23-
## Demonstration
24-
To run the demo, simply follow the steps in the YouTube video above.
25-
26-
The `main` branch already contains the full demo source code.
27-
If you want an empty demo template project to implement the demo yourself, or to use DiffDetective for other purposes, you may
28-
switch to the `empty` branch.
12+
## Setup
13+
Software requirements are documented in the [REQUIREMENTS.md](REQUIREMENTS.md) file (there are no specific hardware requirements).
14+
The setup is documented in the [INSTALL.md](INSTALL.md) file.

0 commit comments

Comments
 (0)