言語やフレームワークの学習をしたいけど色々な環境を自身のPCにインストールしてPCの環境を変化させたくないと思ったときにCloud9があったのでその情報を共有します。
初期状態
Cloud9で[環境を作成]のボタンを押します。
標準でnodeとnpmは入ってました。
Reactの標準的セットアップ
アプリケーション名<my-react-app>でセット
Reactアプリの開発
プロジェクトディレクトリに移動して、Reactアプリを起動
cd my-react-app
npm start
Cloud9のIDE用ブラウザで確認
IDEメニューの「Preview」から「Preview Running Application」を選ぶと右下にブラウザが現れます。
停止
Terminal内で「^c」を入力するとサーバは停止します。
おまけのGit
Gitもインストールされています。