React 1 環境構築
Windows端末でReactの開発環境を構築する必要あったため手順をまとめました。
まだReactについては勉強中です。
React開発環境構築
Git Install
下記からインストーラをDLし、インストール
Git for Windows
Visual Studio Code Install
下記からインストーラをDLし、インストール
Download Visual Studio Code
nodist Install
下記手順参照
nodistでNode.jsをバージョン管理
nodist -v nodist dist nodist + v6.3.1 node -v npm --version npm update -g npm npm --version
GitLab 連携
下記手順参照
SSH認証キーをGitLabに登録・設定手順 覚書(バージョン:7.13.5)
React
下記手順参照
Facebook公式のcreate-react-appコマンドを使ってReact.jsアプリを爆速で作成する
参考
Git Bashで以下の通りに実行
npm install -g create-react-app git checkout -b create-react-app create-react-app hello-world ls cd hello-world/ ls npm start git add -A git commit -m "create react app hello-world" cd .. code ./hello-world/ cd hello-world/ npm run build ls cd build/ ls npm install -g http-server hs cd ../.. git add -A git commit -m "build app" git checkout master git merge create-react-app git push history