This repository contains the source code for the interface of Robonomics Sensor Network and Altruist Civil Station. The interface is a map with sensors located according to their coordinates. Data is aggregated in real-time via IPFS pub-sub. To obtain a historical data summary, the RoSeMAN long-term storage module is used.
You need to add your IPFS ID into src/agents.json
if you have deployed your own Sensors Connectivity module.
To deploy your own instance of the map using GitHub Pages, start by forking the repository and cloning 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.social
. -
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.social
).
- In
.github/workflows/main.yaml
, changecname: sensors.social
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 don't see the GitHub Pages URL, try reloading the page.
yarn install
yarn dev
yarn build
yarn lint
See Vite Configuration Reference.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).