LoginSignup
2
5

More than 5 years have passed since last update.

Cloud9にNode-redをインストールする方法

Last updated at Posted at 2017-05-08

1. 本記事の概要

クラウド型IDE、Cloud9にNode-redをインストールするだけの記事です。
ドイツ語のこちらの記事を参考にしています。
無料で無期限使用可能ですので、ちょっとサーバー立てておこう、というときに便利です。

2. 手順

2.1. Cloud9のアカウントを作成

Cloud9からアカウントを作成します。GithubからSSOが簡単。

2.2. Workspaceの作成

createworkspace.PNG

+をクリックして新規Workspaceを作成します。

choosetemplate.PNG

Workspaceの名前を入力し、公開/非公開を選択。今回はNode-redをインストールするので、Node.jsのテンプレートを選択します。

welcome.PNG

上のようなIDEが表示されます。

2.3. Node-redのインストール

以下は https://infvo.nl/lab/index.php/Internet_of_Things/Node-RED を参考にしています。

コンソールにて

sudo npm install -g node-red

と入力します。次にsettings.jsをこちらから取得。

wget https://gist.githubusercontent.com/eelcodijkstra/9c0fb0afba8151060853/raw/50b85e72387ff5b3ab25b7fefd4f198bc073f6d3/settings.js

Node-redを起動。

node-red -s settings.js

最後に、Node-redのパレットを開きます。ここのみ上の参考リンクと異なるので注意。

https://projectname-username.c9users.io/

の形式でURLを叩いてください。
parette.PNG

これで基本的な機能は使用できます。

2
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
5