The gateway is a Next JS app that serves the frontend and loads the bos-components
.
Initialize repo in the root:
yarn
Start development server:
cd gateway && yarn run dev
-
Run an instance of a component server like near/bos-loader
-
Run from the project root:
bos-loader sweeter.testnet -p ./bos-components/src
- Open the
/flags
route of your viewer and set the BOS Loader URL e.g.http://127.0.0.1:3030
Note: there is no hot reload, you must refresh the page to see component changes