This application uses the geppetto-meta redux integration together with the LayoutManager and FlexLayout.
This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.
Yarn
Yalc
sudo yarn global add yalc
Build local geppetto dependencies
Run the ./setup.sh
script
sh ./setup.sh
Run this script every time you change code in the local geppetto packages and want to test it in this application.
Install dependencies
npm install --legacy-peer-deps
Notice that we are preferring npm over yarn because geppetto libraries code is not linked with yarn.
Start development server
npm run start
While developing on the geppetto-client, modifications can be hot loaded by running
bash update_geppetto.sh
See Available Scripts for more information.
- Add
@metacell/geppetto-meta-client
as package dependency - Define a componentMap (see
src/app/componentMapp.js
) and add the components that you want to display in the tabs - Define a default layout (see
src/app/layout.js
) - Create the Redux store by using the
createStore
function in@metacell/geppetto-meta-client/common
(seesrc/redux/store.js
) and pass the componentMap and layout - Add the Layout component to your App (see
src/app/showcase.js
) - Import the desired flex-layout theme (see App.js)
- light:
@metacell/geppetto-meta-ui/flex-layout/style/light.scss
- dark:
@metacell/geppetto-meta-ui/flex-layout/style/dark.scss
- gray:
@metacell/geppetto-meta-ui/flex-layout/style/gray.scss
- light:
- Required dependency resolutions
"resolutions": { "bezier-js": "4.0.3", "three": "0.111.0" }