LoginSignup
8
8

More than 5 years have passed since last update.

とりあえずRiot.jsを触ってみたいなら

Last updated at Posted at 2016-08-21

とりあえずRiotjsを触ってみたい

Riotjsを始めるにあたり、動作を確認するための環境を用意しました。
とりあえずRiotjsを触ってみたいという場合に使います。

手順

node.jsのインストール

nodebrewをインストールする

curl -L git.io/nodebrew | perl - setup

pathを通す

export PATH=$HOME/.nodebrew/current/bin:$PATH

読み込む(以下はbashの場合)

source ~/.bashrc

node.jsのバージョン一覧を確認する

nodebrew ls-remote

欲しいバージョンのnode.jsをインストールする(以下は例)

nodebrew install-binary v6.4.0

インストールしたnode.jsを使用する

nodebrew use v6.4.0

npmを最新のバージョンにアップデートする

npm update -g npm

動作環境の用意

好きなディレクトリに移動する

リポジトリをcloneする

git clone git@github.com:hirokisan/sample-riot.git

移動する

cd sample-riot

パッケージをインストールする

npm install

サーバーを立ち上げる

npm start

準備完了

あとは、好きに使います。

  • ソースを見て動作を理解する
  • ドキュメントを見ていろいろ試す
  • など

リファレンス

nodebrew
npm update
sample-riot
riotjs guide
webpack
npmとwebpackで作るRiot.js

8
8
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
8
8