peermaps / peermaps-web

peermaps web application
BSD 2-Clause "Simplified" License
37 stars 7 forks source link

peermaps-web

Map web application for peermaps

Node.js CI

image

usage

Get the code, install and run:

$ git clone https://github.com/peermaps/peermaps-web.git
$ cd peermaps-web
$ npm install
$ npm start

Open the browser at http://localhost:9966.

build

Running npm run build will result in a public/ folder with static content that you can serve with a web server of your choice.

settings

via config.json

Configuration can be provided in a config.json file. There's a config.default.json file with default values. The following properties can be configured:

If you want to run your own version of peermaps-web with a different configuration, you can copy config.default.json to config.json before running npm run build or npm start.

via url search parameters

The following settings can be set via url search parameters:

Example http://localhost:9966/#data=http://localhost:8000 would set the data source to http://localhost:8000.

localization

To add a new language you need to do the following:

webxdc

NOTE This is very much a work in progress and mostly for trying things out and getting to some form of proof of concept. Main questions we want to ask right now are:

The short answer, is that we have managed to build a .xdc file and launch it inside Delta Chat on Android. Some takeaways are:

You can bundle a webxdc app yourself with the following basic steps:

NOTE currently this only works on a modified version of deltachat-desktop, where ipfs cat calls are made to the local ipfs daemon and funneled back when a fetch() call is made to ipfs://${CIDv1} urls. This is done in a streaming fashion.

To get this modified version you can do e.g.:

cd $(mktemp -d) && git clone https://github.com/deltachat/deltachat-desktop.git -b ipfs-experimental && cd deltachat-desktop && npm i && npm run dev

How do we take it further from here? Some questions:

license

bsd