generator icon indicating copy to clipboard operation
generator copied to clipboard

Offline installation of @asyncapi/generator

Open aminrahman opened this issue 2 years ago • 2 comments

Reason/Context

We have a project that is running on a local private server. We provide services over ActiveMQ and we use AsyncAPI to generate ApiDocs. The problem is that we don't have internet access on our systems to generate ApiDocs.

Description

Is there any way you could provide the possibility to completely download @asyncapi/generator as a package and move it to another device that doesn't have internet access to install it using npm?

aminrahman avatar Jan 05 '22 13:01 aminrahman

You can always install @asyncapi/generator and @asyncapi/html-template in local project, then copy everything (with node_modules) to desired location (where you haven't internet) and try to generate by cli in node_modules/@asyncapi/generator/cli.js like:

node node_modules/@asyncapi/generator/cli.js {YOUR_ASYNCAPI} node_modules/@asyncapi/html-template -o {OUTPUT} {PARAMETERS}

Other solution is using docker but without internet you need to fetch image of generator and somehow transfer it to a machine where you don't have internet

magicmatatjahu avatar Jan 05 '22 14:01 magicmatatjahu

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar May 06 '22 00:05 github-actions[bot]

answer provided, no followup, closing

derberg avatar Oct 11 '22 12:10 derberg