Skip to content

Commit

Permalink
Merge pull request #606 from linkedpipes/develop
Browse files Browse the repository at this point in the history
[LPA] Release v1.0
  • Loading branch information
aorumbayev authored Jul 14, 2019
2 parents 9caf785 + a818996 commit 6e069f0
Show file tree
Hide file tree
Showing 272 changed files with 12,049 additions and 3,985 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: "Frontend"
before_script:
- cd src/frontend
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.17.0
- export PATH="$HOME/.yarn/bin:$PATH"
cache:
yarn: true
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
name: "Frontend"
before_script:
- cd src/frontend
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.17.0
- export PATH="$HOME/.yarn/bin:$PATH"
- npm install netlify-cli -g
cache:
Expand Down Expand Up @@ -89,8 +89,8 @@ jobs:
- git config --global user.name "travis-ci"
- npm install netlify-cli -g
script:
- ./gradlew assemble javadoc
- netlify deploy -s $NETLIFY_BACKEND_ID --auth $NETLIFY_ACCESS_TOKEN -p --dir ./build/docs/javadoc
- ./gradlew orchidBuild
- netlify deploy -s $NETLIFY_BACKEND_ID --auth $NETLIFY_ACCESS_TOKEN -p --dir ./docs/build/docs/orchid

- stage: tests
name: "Backend unit tests"
Expand Down Expand Up @@ -134,10 +134,11 @@ jobs:
- psql -c "CREATE DATABASE lpa;" -U postgres
- psql -c "CREATE USER lpa WITH PASSWORD 'example';" -U postgres
- ./gradlew flywayClean flywayMigrate
- docker run --name my-virtuoso -p 8890:8890 -e DBA_PASSWORD=myDbaPassword -e SPARQL_UPDATE=true -e DEFAULT_GRAPH=http://www.example.com/my-graph -d tenforce/virtuoso:1.3.2-virtuoso7.2.5.1
- ./gradlew dockerRun
- docker run --name my-virtuoso -p 8890:8890 -e DBA_PASSWORD=myDbaPassword -e SPARQL_UPDATE=true -e DEFAULT_GRAPH=http://www.example.com/my-graph -d tenforce/virtuoso:1.3.2-virtuoso7.2.5.1
- docker run --name my-etl -p 8080:8080 -d linkedpipes/applications:etl_hang_fix
script:
- ./gradlew -Dspring.datasource.url=jdbc:postgresql://localhost:5432/lpa -Dlpa.discoveryServiceUrl=http://localhost:9000 -Dlpa.virtuoso.queryEndpoint=http://localhost:8890/sparql -Dlpa.virtuoso.crudEndpoint=http://localhost:8890/sparql-graph-crud testIntegration
- ./gradlew -Dspring.datasource.url=jdbc:postgresql://localhost:5432/lpa -Dlpa.etlServiceUrl=http://localhost:8080/resources -Dlpa.discoveryServiceUrl=http://localhost:9000 -Dlpa.virtuoso.queryEndpoint=http://localhost:8890/sparql -Dlpa.virtuoso.crudEndpoint=http://localhost:8890/sparql-graph-crud testIntegration

- stage: deploy
name: "Pushing Backend & Frontend to DockerHub"
Expand Down
78 changes: 32 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,61 +5,38 @@
<a href="https://travis-ci.org/linkedpipes/applications"><img src="https://travis-ci.org/linkedpipes/applications.svg?branch=develop" alt="Travis status" /></a>
<a href="https://app.codacy.com/app/LinkedPipes/applications?utm_source=github.com&utm_medium=referral&utm_content=linkedpipes/applications&utm_campaign=Badge_Grade_Settings"><img src="https://api.codacy.com/project/badge/Grade/87ac72b5a8d347b5a10a519323d71b6f" alt="Codacy" /></a>
<a href="https://renovatebot.com/"><img src="https://img.shields.io/badge/renovate-enabled-brightgreen.svg" alt="Renovate Bot" /></a> </br>
<a href="https://linkedpipes.docs.apiary.io"><img src="https://img.shields.io/badge/Documentation-API-Blue.svg" alt="Apiary" /></a>
<a href="https://docs.frontend.applications.linkedpipes.com"><img src="https://img.shields.io/badge/Documentation-Frontend-blue.svg" alt="Javadoc" /></a>
<a href="https://docs.applications.linkedpipes.com"><img src="https://img.shields.io/badge/Documentation-Guides-blue.svg" alt="Guides" /></a>
<a href="https://docs.frontend.applications.linkedpipes.com"><img src="https://img.shields.io/badge/Documentation-Frontend-blue.svg" alt="Frontend" /></a>
<a href="https://docs.backend.applications.linkedpipes.com"><img src="https://img.shields.io/badge/Documentation-Backend-blue.svg" alt="Javadoc" /></a>
<a href="https://linkedpipes.docs.apiary.io"><img src="https://img.shields.io/badge/Documentation-Backend API-Blue.svg" alt="Apiary" /></a>

</p>

## About
## 📃 About

LinkedPipes Applications is a visualization web platform that allows the users to explore, visualize and publish LinkedData based visualizer applications. Applications created with these platforms can be easily published and integrated anywhere on the Web!

## Quick start
• General user documentation and platform tutorials are available [here](docs.applications.linkedpipes.com) <br/>
• Developer oriented frontend documentation and `React` component demos are available [here](docs.frontend.applications.linkedpipes.com) <br/>
• Developer oriented backend documentation and architecture overview are available [here](docs.backend.applications.linkedpipes.com)

The whole app can be run using [docker compose](https://docs.docker.com/compose/install/):
## 🚀 Quick start

The production version can be run with:
The faster way to start your own LinkedPipes Applications platform instance is to execute the production docker-compose setup.

```bash
$ curl https://raw.githubusercontent.com/linkedpipes/applications/master/docker-compose-master.yml -o docker-compose.yml &&
curl https://raw.githubusercontent.com/linkedpipes/applications/master/nginx-prod.conf -o nginx-prod.conf && docker-compose stop && docker-compose rm -f && docker-compose pull && docker-compose up
```
### Prerequisites

The development version can be run with:
[Docker and Docker-compose](https://www.docker.com)

```bash
$ curl https://raw.githubusercontent.com/linkedpipes/applications/master/docker-compose.yml -o docker-compose.yml &&
curl https://raw.githubusercontent.com/linkedpipes/applications/master/nginx.conf -o nginx.conf && docker-compose stop && docker-compose rm -f && docker-compose pull && docker-compose up
```

If it fails it can be because you already have some container with the same names running. You can delete these containers with the
following command:s
### Running within `docker-compose`

```bash
$ docker rm $(docker ps -a -q -f name=lpa-*)
$ curl https://raw.githubusercontent.com/linkedpipes/applications/master/lpa-cli.sh -o lpa-cli.sh && ./lpa-cli.sh --production-no-cloning
```

## Manual start

You can also run the whole application by directly from the code in the repository.
### Default container ports

First download the whole repository into your computer by running

```bash
$ git clone https://github.com/linkedpipes/applications.git lpa
```

Then set your working directory to the one that you just downloaded:

```bash
$ cd lpa
```

Finally, execute

```bash
(lpa)$ docker-compose stop && docker-compose rm -f && docker-compose pull && docker-compose up --build
```
Once you have started the instance of the platform in `docker-compose`, individual components will be accessible on the following ports by default:

You should be able to access: <br/>
**Frontend** of LPA at `localhost:9001` <br/>
Expand All @@ -68,16 +45,25 @@ You should be able to access: <br/>
• Local **ETL** at `localhost:8080` <br/>
• Local **Virtuoso** at `localhost:8890`

You can also customize some settings in the following files:

- `docker-compose.yml` - for development builds
- `nginx.conf`
- `src/backend/src/main/config/com/linkedpipes/lpa/backend/config.properties`
## 🧠 Advanced usage

---

## Testing
For more advanced scenarious and executions of development compose configurations it is recommended to clone the whole repository first and refer to documentation of `lpa-cli.sh` startup commands:

<p align="center"><img img width=35% src="https://i.ibb.co/MnhHHBq/Browserstack-logo-2x.png" alt="Browserstack-logo-2x" border="0"><br /></p>
```bash
usage: ./lpa-cli.sh [-dc]|[--detailed-command]
-d | --development Start non persistent development setup (assumes repository is already cloned)
-dp | --development-persistent Start non persistend development setup (assumes repository is already cloned)
-p | --production Start persistend production setup (assumes repository is already cloned)
-pnc | --production-no-cloning Start persistend production setup [NO CLONING REQUIRED ;-)]
-cs | --clean-storage Remove 'appdata' and 'data' folders with database data and etc
-sc | --stop-compose Setup whatever configuration setup is currently running
-h | --help Print help documentation
```

## 🧪 Testing

LinkedPipes Applications uses [BrowserStack](https://www.browserstack.com) for automated integration testing.

<p align="center"><img img width=35% src="https://i.ibb.co/MnhHHBq/Browserstack-logo-2x.png" alt="Browserstack-logo-2x" border="0"><br /></p>
Binary file removed design/frontend_wireframes/1.png
Binary file not shown.
Binary file removed design/frontend_wireframes/2.png
Binary file not shown.
Binary file removed design/frontend_wireframes/3.png
Binary file not shown.
Binary file removed design/frontend_wireframes/4.png
Binary file not shown.
Binary file removed design/frontend_wireframes/5.png
Binary file not shown.
31 changes: 0 additions & 31 deletions doc/glossary.md

This file was deleted.

103 changes: 0 additions & 103 deletions doc/research/backend.md

This file was deleted.

14 changes: 8 additions & 6 deletions docker-compose-master.yml → docker/docker-compose-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
- "9005:9005"
- "9092:9092"
restart: on-failure
volumes:
- ../appdata:/appdata
depends_on:
- etl
- discovery
Expand Down Expand Up @@ -49,13 +51,13 @@ services:
VIRT_Parameters_ThreadCleanupInterval: 1
VIRT_Parameters_ResourcesCleanupInterval: 1
VIRT_Parameters_MaxCheckpointRemap: 3750
VIRT_Parameters_DirsAllowed: ., /usr/local/virtuoso-opensource/share/virtuoso/vad, /appdata
VIRT_Parameters_DirsAllowed: ., /usr/local/virtuoso-opensource/share/virtuoso/vad, /appdata, /appdata/upload, /appdata/datasamples
ports:
- "8890:8890"
restart: on-failure
volumes:
- ./data/virtuoso:/data
- ./appdata:/appdata
- ../data/virtuoso:/data
- ../appdata:/appdata


discovery:
Expand All @@ -81,7 +83,7 @@ services:
ports:
- "8080:8080"
volumes:
- ./appdata:/appdata
- ../appdata:/appdata

postgres:
image: postgres:9.6
Expand All @@ -91,14 +93,14 @@ services:
POSTGRES_PASSWORD: example
POSTGRES_USER: lpa
volumes:
- ./data/postgres:/var/lib/postgresql/data
- ../data/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"

flyway:
image: boxfuse/flyway
command: -url=jdbc:postgresql://lpa-postgres:5432/lpa -user=lpa -password=example -connectRetries=60 migrate
volumes:
- ./src/backend/src/main/resources/db/migration:/flyway/sql
- ../src/backend/src/main/resources/db/migration:/flyway/sql
depends_on:
- postgres
Loading

0 comments on commit 6e069f0

Please sign in to comment.