#!/usr/bin/env bash

## here is path to NVM installation

export NVM_DIR="~/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

export CLICOLOR=1

export PATH="/opt/local/bin:/opt/local/sbin:$PATH"

nvm install

npm config set liverecord:email.transport 'smtp://email%40example.com:password@example.com:465?tls.rejectUnauthorized=false'
npm config set liverecord:email.sender 'LiveRecord <sender@example.com>'

export NODE_ENV=development

npm start
