Homebrewのインストール
- Homebrewのインストール
node.jsの環境構築
- nodebrewのインストール
brew install nodebrewnodebrew -v
- node.jsのインストール
-
nodebrew install-binary stable: latest or {version} -
nodebrew use stable: latest or {varsion} 'export PATH=$HOME/.nodebrew/current/bin:$PATH'
-
pythonの環境構築
- pipのインストール
- [here](curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py)
-
python get-pip.py: pipインストール
- pyenvのインストール
- homebrewのインストール
brew install pyenvpyenv install {version}-
pyenv global {version}: PCのpythonのバージョン切替え -
pyenv local {version}: カレントディレクトリの 〃 echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrcecho 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrcecho 'eval "$(pyenv init -)"' >> ~/.zshrc
- anacondaのインストール
Goの環境構築
- Goのインストール
brew install go-
go get golang.org/x/tools/cmd/godoc: 試しにgodocを入れてみる -
godoc fmt: fmtが入ったか確認
PHPの環境構築( +α Laravel )
- PHPのインストール
brew install php@7.2-
sudo vi /etc/apache2/httpd.conf: php7_module追加
- Laravelのインストール
-
curl -sS https://getcomposer.org/installer | php: comporser -
sudo mv composer.phar /usr/local/bin/composer: 〃 移動 -
composer --version: バージョン確認 -
composer global require laravel/installer: Laravel CLI export PATH=~/.composer/vendor/bin:$PATH
-
- Laravel立ち上げ
laravel new {project}composer create-project --prefer-dist laravel/laravel {project}php artisan serve
MySQLの環境構築( +α Sequel pro )
- MySQLのインストール
brew install mysql@5.7export PATH='/user/local/opt/mysql@5.7/bin:$PATH
- サーバー立ち上げ
-
mysql.server start: stop -
mysql -u root -p: ログイン(PASSなし) -
show databases;: use {database} create database {database} default character set utf8mb4 collate utf8mb4_unicode_ci;-
show tables;: テーブル表示
-
Rubyの環境構築( +α Rails )
- rbenvのインストール
brew install rbenvexport PATH="~/.rbenv/shims:/usr/local/bin:$PATH"eval "$(rbenv init -)"rbenv -v
- Rubyのインストール
rbenv install --listrbenv install x.x.x-
rbenv global x.x.x: PCのRubyのバージョン変更 -
rbenv local x.x.x: カレントディレクトリの 〃 -
rbenv rehash: 再読み込み ruby -v
- Railsのインストール
-
gem install bundler: Bundlerのインストール -
bundle -v:gem updata bundler -
bundle init: ディレクトリ内で -
vi Gemfile: gem "rails"のコメントアウト外す -
gem install rails: rails CLI bundle install --path=vendor/bundlerails new {project}bundle exec rails new {project}
-
- Rails立ち上げ
bundle exec rails s-
rails server: CLI
Vue.jsの環境構築
- Vue CLIのインストール
yarn global add @vue/clinpm install -g @vue/clivue --version-
vue create {project}: Enter or arrow -
npm run serve: npm run build -
yarn serve: yarn build
Gatsby.jsの環境構築
- Gatsby CLIのインストール
npm install -g gatsby-cligatsby new {project}gatsby developgatsby build
Angularの環境構築
- Angular CLIのインストール
npm install -g @angular/cling new {project}ng serve
Reactの環境構築
- プロジェクト立ち上げ
npx create-react-app {project}npm startnpm init react-app my-appyarn create react-app my-app
React-360の環境構築
- React-360 CLIのインストール
npm install -g react-360-clireact-360 init {project}npm start
Flutterの環境構築
-
Flutter SDKのインストール
- here
-unzip ~/Downloads/flutter_macos_v1.9.1+hotfix.6-stable.zip
-flutter precache: iOSおよびAndroidのバイナリを事前にダウンロード
-flutter doctor: 不足している依存関係の確認
-export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin"
-which flutter: 場所確認 -
Xcodeのインストール
-sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
-sudo xcodebuild -runFirstLaunch -
Flutter立ち上げ
-flutter create {project}
-flutter run
GitHubの環境構築
- sshKeyの作成と設定
- here
-ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
-chmod 600 ~/.ssh/id_rsa_github
-vi ~/.ssh/config
-ssh -T {HOST}
- GitHub => Setting => SSH and GPG keys - 複数アカウントの際のコマンド
-to main(sub)
-git remote add origin git@github(-sub):<account>/<repo> - チートシート
-git stash: (save)
-git stash list-p
-git stash show {stash名}
-git stash apply {stash名}
-git stash drop {stash名}pop = apply + drop
-git diff: add前
-git diff --cached: add後
-git diff HEAD^: (..HEAD) commit後
-git reset HEAD: add取り消し
-git switch -c {branch名}
-git rm -r --cached {file名}: キャッシュ削除
TypeScriptの環境構築
- typescriptコンパイラのインストール
-npm install -g typescript
-tsc -v
-npm i -g webpack-cli: webpack-cliのインストール - コンパイルから実行
-tsc {file(.ts)}
-node {file(.js)} - TypeScriptプロジェクトのテスト
-npm init --y: デフォルト設定でpackage.json作成
-tsc --init: tsconfig.jsonを作成
-tsc app.ts: コンパイル
-webpack app.js --output bundle.js --mode=development
Electronの環境構築
- electron-cliのインストール
-npm i -g electron - Electron立ち上げ
-npm init -y
-npm i -D electron
-npm start - electron-builderのインストール
-npm install -D electron-builder
-node build-mac
- here
Nuxt.jsの環境構築
- Nuxt.js立ち上げ
-npx create-nuxt-app {project}
-npm run dev
-npm install --save nuxt
Sassの環境構築
- Sassのインストール
-ruby -v: rubyが入っているか確認
-sudo gem install sass: gemを使ってインストール
-sass -v - Sassのアップデート
-gem update --system: gemのアップデート
-gem update sass - Sassのコンパイル
-sass (--watch) {file.scss} {file.css} (--style expanded)
-nested: ネスト構造
-expanded: 通常のCSS
-compact: シングルライン
-compressed: 余分を全て排除
Svelteの環境構築
- Svelte立ち上げ
-npx degit sveltejs/template {project}
-npm i
-npm run dev: build
-npm i -g svelte-cli: cliのインストール
Gulpの環境構築
- Gulpのインストール
-npm i -D gulp
-npm i -g gulp-cli
-npm i -D gulp gulp-sass
- gulpfile.jsをルートに作成
-npx gulp
CocoaPodsの環境構築
- CocoaPodsのインストール
-sudo gem install cocoapods
-pod setup - ライブラリの追加
-pod init
- Podfileを編集
-pod install: update