Skip to content

Commit

Permalink
Merge pull request #22 from CoreMedia/chili/fix-CMS-23418-documentation
Browse files Browse the repository at this point in the history
[CMS-23418] documentation (main)
  • Loading branch information
rwaterma authored Feb 5, 2025
2 parents 7efd87f + f8bd2eb commit c4f2d21
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 954 deletions.
39 changes: 27 additions & 12 deletions documentation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@
## Table of Content

1. [Introduction](#introduction)
1. [Use Git](#use-git)
2. [Download Release](#download-release)
3. [Activate the Plugin](#activate-the-plugin)
4. [Intellij IDEA Hints](#intellij-idea-hints)
2. [Use Git](#use-git)
3. [Download Release](#download-release)
4. [Activate the Plugin](#activate-the-plugin)
5. [Intellij IDEA Hints](#intellij-idea-hints)

## Introduction

Depending on your setup and your plans, you can integrate this project in different ways.

* If you want to use the plugin in your project, clone or fork the repository.
* If the plugin is already bundled in your Blueprint (check the `plugin-descriptors.json` file of the Blueprint), you can immediately proceed with [Configure the Plugin](#configure-the-plugin).
* If the plugin is not bundled in your Blueprint, or you want to use a different release, select one from [Releases](https://github.com/CoreMedia/content-hub-adapter-rss/releases) and proceed with [Activate the Plugin](#activate-the-plugin).
* If you want to customize the plugin in your project, clone or fork the repository, and add or exchange the plugin in your Blueprint.
* If you do not want to use GitHub, proceed as described in [Download Release](#download-release).
* If you want to contribute a new feature or a bugfix, as an external developer, you need a fork of the repository to create a Pull Request.

Expand All @@ -38,22 +40,35 @@ The ZIP file provides the Maven workspace of the plugin.
## Activate the Plugin

The rss contenthub adapter is a plugin for studio-server and studio-client.
The deployment of plugins is described [here](https://documentation.coremedia.com/cmcc-10/artifacts/2101/webhelp/coremedia-en/content/ApplicationPlugins.html).
The deployment of plugins is described in the [Blueprint Developer Manual](https://documentation.coremedia.com/cmcc-12/current/webhelp/coremedia-en/content/ApplicationPlugins.html).

In short, for a quick development roundtrip:
1. Build your Blueprint.
2. Build the `content-hub-adapter-rss`
1. Possibly delete the plugin from the bundled plugins (as described in the "Using Plugin Descriptors and Releases" section of the Blueprint Developer Manual).
2. Build your Blueprint.
3. Build the `content-hub-adapter-rss`
1. Run `mvn clean install` in the `studio-server` folder.

Checkpoint: A zip file exists in `studio-server/target`.
2. Run `pnpm install && pnpm -r run build && pnpm -r run package` in the folder `studio-client`.
2. Run `npm install -g pnpm@8.6 && pnpm install && pnpm -r run build && pnpm -r run package` in the folder `studio-client`.

Checkpoint: A zip file exists in `studio-client/apps/main/content-hub-adapter-rss/build`.
3. Create a directory for studio-server plugins, e.g. `/tmp/studio-server-plugins`,
4. Create a directory for studio-server plugins, e.g. `/tmp/studio-server-plugins`,
and copy `content-hub-adapter-rss/studio-server/target/studio-server.content-hub-adapter-rss-<version>.zip`
into that directory.
4. Start the studio server as usual, e.g. `mvn spring-boot:run`, with an additional property `-Dplugins.directory=/tmp/studio-server-plugins`
5. Start the studio client with an additional property `-DadditionalPackagesDirs=/.../content-hub-adapter-rss/studio-client/target/app`
5. Start the studio server as usual, e.g. `mvn spring-boot:run`, with an additional property `-Dplugins.directories=/tmp/studio-server-plugins`
6. In your Blueprint studio-client workspace, there is a file `apps/studio-client/apps/main/app/jangaroo.config.js`,
which contains a structure like
```
module.exports = jangarooConfig({
additionalPackagesDirs: [
"./build/additional-packages",
],
...
});
```
Add the absolute path of the `content-hub-adapter-rss/studio-client/apps/main/content-hub-adapter-rss` directory
(see step 2.2.) to the `additionalPackagesDirs` list.
6. Start the studio client as usual.

Now the plugin is running. You won't yet notice it though, until you configure a connection
and restart the studio server.
Expand Down
Loading

0 comments on commit c4f2d21

Please sign in to comment.