Decentralized Open Sensors Map. Don't forget to your IFPS ID into src/agents.json
in case you set up your own Sensors Connectivity module.
To deploy your own instance of the map using GitHub Pages, start by forking the repository/ and clone it. To successfully deploy the map, you will need to modify certain files:
- In
.github/workflows/main.yaml
removecname: sensors.robonomics.network
. - Add the following code right below
runs-on: ubuntu-latest
in.github/workflows/main.yaml
:
permissions:
contents: write
- In
vite.config.js
addbase: "/<repository name>/",
to thedefineConfig
object just above theplugins
section , replacing<repository_name>
with the name of your fork (default will besensors.robonomics.network
)
- In
.github/workflows/main.yaml
changecname: sensors.robonomics.network
to yourCNAME
. - Add the following code right below
runs-on: ubuntu-latest
in.github/workflows/main.yaml
:
permissions:
contents: write
After making modifications to the files, you can deploy your instance of the map by following these steps:
- Commit and push the changes to your forked repository.
- Go to the
Pages
section of your repository settings. - Enable GitHub Pages by selecting
Deploy from a branch
as the source - Choose the
gh-pages
branch and theroot
folder. - Save the settings, and GitHub Pages will deploy your instance of the map.
- Access it using the provided GitHub Pages URL.
yarn install
yarn dev
yarn build
yarn lint
See Vite Configuration Reference.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).