memo-bond / memo

memo.bond monorepo
0 stars 0 forks source link

Tech stack

Setup Dev (MacOS)


      # install brew
      /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
      # instal nvm - Node Version Manager
      brew install nvm
      # install node v14.18.3
      nvm install v14.18.3
      # install yarn global
      npm i -g yarn

At root directory of our project, run build yarn workspace


yarn

Start Memo Admin


      cd packages/admin
      # resolve dependencies & start app
      yarn && yarn start

==> http://localhost:8000

Start Backend


      cd packages/api/functions
      # resolve dependencies & start firebase emulator
      yarn && yarn serve

==> http://localhost:5001/memo-9b895/asia-southeast1/api

prerequire


# typescript
npm install -g typescript
# lerna
npm install --global lerna

build @memo-bond/common


yarn --cwd packages/common/ build

for link lerna


lerna bootstrap

for link yarn


yarn --cwd packages/common link
yarn --cwd packages/common link "@memo-bond/common"

start admin with custom PORT 8880


cd packages/admin
yarn && PORT=8880 yarn start