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 enable GitHub Actions, go to the repository page, click on the Actions
tab, and set up a workflow if you haven't done so already.
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.
- Wait until the actions have successfully completed.
- Go to the
Pages
section of your repositorySettings
. - 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.
If you dont see the GitHub Pages URL try to reload the page.
yarn install
yarn dev
yarn build
yarn lint
See Vite Configuration Reference.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).