This app uses Module Federation to combine three different applications with different frameworks into a single, cohesive application. The three applications are:
- Suite App, built with React
- Camino Explorer, built with React
- Camino Wallet, built with Vue
- Node v16 or higher
- Camino Explorer running
- Camino Wallet running
To get started you need to have explorer and wallet running.
-
start explorer
-
clone the repository
git clone https://github.com/chain4travel/camino-block-explorer
-
navigate to the root directory and switch branch to suite
cd camino-block-explorer && git checkout suite
-
install dependencies
yarn install
-
start the development server for the application
yarn start
-
-
start wallet
-
clone the repository
git clone https://github.com/chain4travel/camino-wallet
-
navigate to the root directory and switch branch to suite
cd camino-wallet && git checkout suite
-
install dependencies
yarn install
-
start the development server for the application
yarn start
-
After successfully running the explorer and wallet, clone this repository and navigate to the root directory in your terminal. Then, run the following commands:
yarn install
yarn start
This will start the development server for the application.
This application is built using Module Federation, which is a feature of Webpack that allows multiple applications to share code and run in the same context. Each of the three applications in this app is built as a separate Webpack module. When you start the development server, the application will be served from localhost:5001. Each of the three applications can be accessed at the following URLs:
- Host (React): localhost:5001
- Wallet (Vue): localhost:5001/wallet
- Explorer (React): localhost:5001/explorer