Skip to content

Commit

Permalink
Doc improvements #743
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Jul 20, 2023
1 parent c6cb42c commit 6860bda
Show file tree
Hide file tree
Showing 43 changed files with 143 additions and 66 deletions.
37 changes: 0 additions & 37 deletions DEV.md

This file was deleted.

31 changes: 4 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,9 @@ Integrations could be created using visual designer that includes Enterprise Int

https://user-images.githubusercontent.com/1379213/211049026-4496d054-d529-4917-837f-a59b6f2f84b1.mp4


## Installation

Two types of applications are available:
1. [Cloud-native](karavan-cloud/README.md) application deployed into Kubernetes/OpenShift
2. [VS Code extension](karavan-vscode/README.md) available on the [Marketplace](https://marketplace.visualstudio.com/items?itemName=camel-karavan.karavan). Extensions for VS Code Compatible Editors available on [Open VSX Registry](https://open-vsx.org/extension/camel-karavan/karavan)

Both applications share same visual designer and work with Camel YAMl DSL.

## Karavan cloud-native application
Karavan cloud-native integration toolkit is an application to manage projects, design and monitor integrations, Tekton pipeline to build and deploy integrations. More about [cloud-native Karavan](karavan-cloud/README.md)

![karavan-ipaas-1](images/karavan-ipaas-1.png)


## Karavan VS Code extension
Install Karavan VS Code extension from the [Marketplace](https://marketplace.visualstudio.com/items?itemName=camel-karavan.karavan) or from [Open VSX Registry](https://open-vsx.org/extension/camel-karavan/karavan)

More about [Karavan VS Code Extension](karavan-vscode/README.md)

![karavan-vscode](images/karavan-vscode.png)


## Features
### Mode
* [Cloud-native](karavan-cloud/README.md)
* [Web application](karavan-cloud/README.md)
* [VS Code extension](karavan-vscode/README.md)
### Visual Designer for Integrations
* Enterprise Integration Patterns DSL
Expand All @@ -61,11 +38,11 @@ More about [Karavan VS Code Extension](karavan-vscode/README.md)
### Build and Deploy
* Maven for local development
* Tekton Pipelines for Kubernetes/OpenShift
### Documentation
### Knowledgebase
Build-in catalogues:
* Enterprise Integration Patterns
* Kamelets
* Components

## Development
How to build [Karavan](DEV.md)
## Documentation
[Karavan documentation](docs/INDEX.md)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 55 additions & 0 deletions docs/DEV.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
## Project structure
1. karavan-generator
Generate Camel Models and Api from Camel sources to Typescript in karavan-core
2. karavan-core
Front-end Camel Models and Api
3. karavan-Designer
KaravanDesigner UI component
4. karavan-web
Karavan Cloud Application
* karavan-app
Karavan Application to be installed into Kubernetes
* karavan-cli
Karavan CLI to install into Kubernetes
* karavan-operator
Karavan Operator to install into Openshift
5. karavan-vscode
VS Code extension based on Karavan Designer

## How to build Karavan Web Application
1. Generate Camel Models and API for Typescript
```
mvn clean compile exec:java -Dexec.mainClass="org.apache.camel.karavan.generator.KaravanGenerator" -f karavan-generator
```

2. Install Karavan core library
```
cd karavan-core
npm install
```

3. Build Karavan app
```
cd karavan-web
mvn clean package -f karavan-app -Dquarkus.profile=public
```

## How to build Karavan VS Code extension
1. Generate Camel Models and API for Typescript
```
mvn clean compile exec:java -Dexec.mainClass="org.apache.camel.karavan.generator.KaravanGenerator" -f karavan-generator
```

2. Install Karavan core library
```
cd karavan-core
npm install
```

3. Build Karavan VS Code extension
```
cd karavan-vscode
npm update && npm install
npm install -g @vscode/vsce
vsce package
```
27 changes: 27 additions & 0 deletions docs/INDEX.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
![karavan-logo](../images/karavan-logo-dark.png#gh-dark-mode-only)
![karavan-logo](../images/karavan-logo-light.png#gh-light-mode-only)

# Documentation

## User guide

### Web Application

Karavan Web Application is a container deployed into Kubernetes/OpenShift

1. [Install](WEB_INSTALL.md)
2. [How to use](WEB_HOWTO.md)

### VS Code extensions

VS Code extension available on the [Marketplace](https://marketplace.visualstudio.com/items?itemName=camel-karavan.karavan).

Extensions for VS Code Compatible Editors available on [Open VSX Registry](https://open-vsx.org/extension/camel-karavan/karavan)

1. [Install](VSCODE_INSTALL.md)
2. [How to use](VSCODE_HOWTO.md)


## Developer Guide

1. [How to build Karavan](DEV.md)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions docs/VSCODE_HOWTO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create and edit integration

## Create new Integration

![create](../images/create.png)

## Edit an existing Integration

![open](../images/open.png)


# Run integration

## Run integration locally
* Run in UI: click `Run` button

![run](../images/run.png)

* Run using CLI
```shell
jbang -Dcamel.jbang.version=3.21.0 camel@apache/camel run $INTEGRATION.yaml --max-messages=10 --logging-level=info
```

## Export integration to Maven project

* Export using context menu
![export](../images/export.png)

* Export using CLI
```shell
jbang -Dcamel.jbang.version=3.21.0 camel@apache/camel export --directory=export
```

# Issues

If you find a new issue, please [create a new issue report in GitHub](https://github.com/apache/camel-karavan/issues)!
13 changes: 13 additions & 0 deletions docs/VSCODE_INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Installation

## Prerequisites
* Microsoft VS Code installed. You can get the most recent version from (https://code.visualstudio.com/) for your chosen operating system.
* [Camel JBang] installed(https://camel.apache.org/manual/camel-jbang.html)

## How to install
1. Open your VS Code Integrated Development Environment (IDE).
2. In the VS Code Activity Bar, select Extensions. (Alternatively, press Ctrl+Shift+X).
3. In the search bar, type **Karavan**
4. In the **Apache Camel Karavan** box, click **Install**.

![install](../images/install.png)
6 changes: 6 additions & 0 deletions docs/WEB_HOWTO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## How to use Karavan


[![Watch the video](https://img.youtube.com/vi/trsZyzEvbWw/default.jpg)](https://youtu.be/trsZyzEvbWw)


2 changes: 1 addition & 1 deletion karavan-web/karavan-cli/CLI.md → docs/WEB_INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Install Karavan with CLI
## Install Karavan Web Application with CLI

### Requirements
1. minikube v1.30+ installed with `--driver=hyperkit`
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added images/export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/run.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion karavan-vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Integration project output is a runnable uber-jar or an OCI image for local envi
### Runtimes
* [Camel JBang](https://camel.apache.org/manual/camel-jbang.html)
* [Camel Quarkus](https://camel.apache.org/camel-quarkus)
* [Camel Spring-Boot](https://camel.apache.org/camel-spring-boot) (WIP)
* [Camel Spring-Boot](https://camel.apache.org/camel-spring-boot)
* [Camel Main](https://camel.apache.org/components/3.18.x/others/main.html) (WIP)
### Build and Deploy
* Maven for local development
Expand Down

0 comments on commit 6860bda

Please sign in to comment.