all repos — felt @ 3ea316581cf146ea759d821d16a4c9a0685cdf30

virtual tabletop for dungeons and dragons (and similar) using Go, MongoDB, and websockets

fix readme and index footer
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmSvlxEACgkQO3+8IhRO
Y5hdKxAAjVt8S9jiARGK1v2//zEifC2F7FdiNixDBAcL9OIE+HsUHksEC5pdfbtu
uqkxE0NklKQ8pNeO7J3Wek6KjuRNQovsZYYEKlWz+Qcfb0X0OTYPJKeB/L1EvXXF
C/wS2ydQ+297z7mLpoaVYJvVjnZyYyvEIUC+XgqR2p1wzpH8hPFihAkhwH/1aXnQ
MgU/BteXSvCHpJV9ihCaZdXftH9pjLvgrTNQWPzov7EWGFuc7nWwiXzeH5x4ao1H
RnCjjxl1rT6vpSIrOu0KrMx0YTtobqJHOZWnZ64QWms6caPiqyCH2ZmwTNFXNmpC
eIBzl1O9UmgruY7oYGcw2Ir57j1VVo4lgRkZNFeqJCCDbUK4EK90cTvqI220UL3y
HHyEMi2J/ai1p7CuvDxHdYZqs4MfbL/tnkAdFyHNEjCbOeeI4AEcJb8wogF+a/CY
PVcxnm4GFvMX4uCDqRqsoDEUrufEJ5sGHKHQFXQd46lSKQ/SK3fhDRlYx1vH4H+2
baJqsE8BLUGkfL+XgnMCRoVA09HcYuHpQUgiVR1ofSY9HDCK0gUWk8MO2szgNevn
lky0E2xPoOJWqzRwhQE7bwhBsw6wtydUazen60Lsr/uJDlR2DtMkM7DK2IEVeV2p
nM3gSCBH06jxirKBT2jr725ld+Y2u1Guqa2oB6pQTDRMaFIe2Hs=
=VYwE
-----END PGP SIGNATURE-----
commit

3ea316581cf146ea759d821d16a4c9a0685cdf30

parent

e29512f8e4b1e41508d1826ca4b58cfb6bd17ea0

2 files changed, 9 insertions(+), 4 deletions(-)

jump to
M README.mdREADME.md

@@ -20,7 +20,7 @@ The `status` panel is updated when the admin changes the table's status, and can be used to display initiative order, other battle status, environmental or contextual notes, etc.

The `token select` panel provides a list of every existing token at the table. Clicking the name of the token shows a to-scale preview at the top of the list (with a button to dismiss it), which is resized according to the zoom level of the map. The button to the right of each token's name can place the token on or remove it from the map. -Any user can move any token on the map. +Any user can move any token on the map by dragging it around. The map is pannable and zoomable as well. ### admin

@@ -44,15 +44,20 @@ Creating or destroying tokens as well as changing the map causes updates to be sent to all clients at the same table in the same manner as (de)activating and moving tokens.

## build, run, deploy +Requirements: + +- go +- docker + 1. Clone this repository and `cd` into it. 2. `go mod tidy` 3. `go build` 4. Simultaneously (from different terminals or services): - - from the `mongodb` folder, copy the `.env.example` file to `.env` and adjust it, then run `./run.sh build`. After initial run, the `build` argument is not needed + - from the `mongodb` folder, copy the `.env.example` file to `.env` and adjust it, then run `./run.sh build`. After initial run, the `build` argument is not needed; this runs the database in a docker container. Make note of your settings/credentials for the mongodb URI. - from the root folder, run `./felt` - a wizard asks for the mongodb URI (check mongo docs for this) the port, uploads folder, and max upload size - from the root folder, run `./felt invite` to get a registration token and register an admin account as explained above 5. When running behind a reverse proxy, you will need to make sure that the server can forward the `Upgrade: websocket` header. ## license -The `felt` code is released under the [MIT license](https://hacklab.nilfm.cc/felt/raw/main/LICENSE); [Leaflet](https://leafletjs.org), the slippy map library used in the frontend, is licensed under a [2-clause BSD license](https://hacklab.nilfm.cc/felt/raw/main/LEAFLETLICENSE). Basically do what you will but give credit.+The `felt` code is released under the [MIT license](https://hacklab.nilfm.cc/felt/raw/main/LICENSE); [Leaflet](https://leafletjs.com), the slippy map library used in the frontend, is licensed under a [2-clause BSD license](https://hacklab.nilfm.cc/felt/raw/main/LEAFLET_LICENSE). Basically do what you will but give credit.
M static/index.htmlstatic/index.html

@@ -143,7 +143,7 @@ <button onclick="setTheme()">Apply</button><button onclick="resetTheme(defaultTheme)">Reset</button>

</form> </details> <div id="lag" style="display:none;">lag...</div> - <div class="ui_win" id="felt_info"><a href="https://hacklab.nilfm.cc/felt">felt v0.1.0</a> (<a href="https://hacklab.nilfm.cc/felt/raw/main/LICENSE">license</a>) | built with <a href="https://leafletjs.org">leaflet</a> (<a href="https://hacklab.nilfm.cc/felt/raw/main/LEAFLETLICENSE">license</a>) </div> + <div class="ui_win" id="felt_info"><a href="https://hacklab.nilfm.cc/felt">felt v0.1.0</a> (<a href="https://hacklab.nilfm.cc/felt/raw/main/LICENSE">license</a>) | built with <a href="https://leafletjs.com">leaflet</a> (<a href="https://hacklab.nilfm.cc/felt/raw/main/LEAFLET_LICENSE">license</a>) </div> </nav> </body> <script src="./leaflet.js?v=1.9.4" type="text/javascript"></script>