- Install homebrew (https://brew.sh)
- Ensure you have permissions to write to /usr/local/
sudo chown -R $(whoami) /usr/local/ - Install nodejs:
brew install node - Install n -- a command line tool for switching between node versions:
npm install -g n - Switch to supported node version:
n 8.1.3 - Clone code:
git clone PROJECT_URL path/to/project
cd path/to/project- Install package dependencies:
npm install
- npm install
- npm run dev-deploy
- npm run watch
- npm run test
- serverless deploy -s <dev,stage,prod>
- serverless deploy-lexbot -s <dev,stage,prod>
- Install VSCode: (https://code.visualstudio.com)
- Launch VSCode -- install command line tools (cmd-shift p to bring up command palette then type: shell command: install code command in PATH)
- Install prettier plugin:
code --install-extension esbenp.prettier-vscode - Install tool for searching node_modules (this directory is otherwise configured to be hidden):
code --install-extension jasonnutter.search-node-modules
- Install Atom: (https://atom.io)
- Launch atom -- install command line tools (Preferences->Install shell commands)
- Shutdown atom and install useful atom packages:
apm install atom-typescript tree-ignore linter linter-eslint prettier-atom - Launch atom, configure prettier to reformat on filesave (Preferences->Packges->Search for 'prettier' and pick settings: Ensure checked: Silence Errors, Format Files on Save. Ensure unchecked: ESLint Integration)