Skip to content

Basic setup

Justin Gasper edited this page Nov 23, 2021 · 1 revision

Running MFE forums app:

You must use Node 10.22.1

hosts file:

Add 127.0.0.1 local.topcoder-dev.com to your hosts file first!

Proxy (shell 1):

  • nvm use 10.22.1
  • npm i -g local-ssl-proxy
  • local-ssl-proxy -n local.topcoder-dev.com -s 443 -t 8080

Navbar (shell 2):

  • git clone -b earn-restructure https://github.com/topcoder-platform/micro-frontends-navbar-app.git
  • cd micro-frontends-navbar-app
  • export APPMODE=development
  • export APPENV=local
  • nvm use 10.22.1
  • npm i
  • npm run dev

Frame server (shell 3):

  • git clone -b earn-restructure https://github.com/topcoder-platform/micro-frontends-frame.git
  • cd micro-frontends-frame
  • export APPMODE=development
  • export APPENV=local-multi
  • nvm use 10.22.1
  • npm i
  • npm run local-server

Frame client (shell 4, in the micro-frontends-frame directory):

  • export APPMODE=development
  • export APPENV=local-multi
  • nvm use 10.22.1
  • npm run local-client

Forums MFE (shell 5):

  • git clone git@github.com:topcoder-platform/micro-frontends-forums-app.git
  • cd micro-frontends-forums-app
  • export APPMODE=development
  • export APPENV=local
  • nvm use 10.22.1
  • npm i
  • npm run dev

Test

You should be able to access https://local.topcoder-dev.com and login with a Topcoder dev test account