- for Mac PC
node -v
...check your node.js has been installed. -> if you get response for example v12.3.0, skip 1~3brew -v
...check you have homebrew. -> if you have homebrew, skip 2/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
...install homebrew. when it finished, you checkbrew -v
and it is successful when you get response!brew install nodebrew
...install nodebrew, this is manager of node.js version.nodebrew install-binary v14.15.4
...install node.js ver of this is used by our project.nodebrew user v14.15.4
...Use node.js by v14.15.4.vi ~/.zshrc
and press "i" key to use insert mode, to writeexport PATH=$HOME/.nodebrew/current/bin:$PATH
. when finished it, press "esc", and next type ":wq" to save this change.source ~/.zshrc
...make node.js of this version available. And you can "npm", this is manager package(library) of node.js.npm -v
...check your npm version. and when your npm version below "5.2.0" runnpm install -g npm
git clone git@github.com:Hopin-inc/ymca_hp.git
- If you haven't set up github or ssh of github, check below link GitHubでssh接続する手順〜公開鍵・秘密鍵の生成から〜 githubからsshでクローンする。sshでpushする
git pull origin develop
...can your branch use now update latest developing version.git branch [branch name]
...can make branch from the branch used by you now.
- check your current directory "ymca_hp_nuxt"
mpm install
...this can install packages referenced by package.json and package-lock.json
git add .
...regist(stage) your change of this project.git commit -m "[commit message]"
... confirm your change in localgit push origin [origin branch name]
...regist(push) your change in remote branch and compare to merge it.
- check your current directory "ymca_hp_nuxt"
npm run dev
...start local server.
- check your current directory "ymca_hp_nuxt"
npm run build
...this make project minified.npm run start
...start server by production mode.