Skip to content

golemfactory/create-golem-app

Repository files navigation

Create Golem App

Create a new Golem Application.

Installing / Getting started

Install using npm:

npm install -g @golem-sdk/create-golem-app

Install using yarn:

yarn global add @golem-sdk/create-golem-app

Test if it is installed correctly:

create-golem-app --version

If everything is fine, you should see the version of the create-golem-app installed.

Creating a new app

create-golem-app uses golem-sdk CLI to create a new application from a template.

Once installed, you can run the following command directly:

create-golem-app

You can also use npx to run the command without installing it:

npx @golem-sdk/create-golem-app

And the third option is to use npm init:

npm init @golem-sdk/golem-app

Once you run this CLI script, you will be asked a series of questions about your application and the CLI will use your answers to generate a new Golem Application.

The first question will be the project name. The CLI will use it to create a new directory for your application in the current directory. You can use the --path option to override this behaviour.

Note: The command will abort if the directory already exists.

You can provide all the needed information from command line too. Type golem-sdk new --help to see the list of available options.

Application templates

Currently only one template is available, js-node. It is a template for a Golem application, written in plain javascript (CommonJS) that performs a single task on Golem Network.

More templates will soon be added.

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

If you would like to add or improve our application templates, please go to golem-sdk CLI GitHub page.

Links

Licensing

The code in this project is licensed under the GPL-3 license.

See LICENSE for more information.