Giter VIP home page Giter VIP logo

hnh-map's Introduction

From directory with Dockerfile, build image and store it locally:

docker build -t "hnh-map:latest"

Then you can run it in background with:

docker run -d -p 8080:8080 hnh-map

This command will create container and start it. Go to localhost:8080 to view.

Original README below.


hnh-map

Automapper server for HnH, (mostly) compatible with https://github.com/APXEOLOG/hnh-auto-mapper-server

Docker image can be built from sources, or is available at https://hub.docker.com/r/andyleap/hnh-auto-mapper (automatically built by Docker's infrastructure from the github source)

Run it via whatever you feel like, it's listening internally on port 8080 and expects /map to be mounted as a volume (database and images are stored here), so something like the below will suffice.

docker run -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-4

Set it up under a domain name however you prefer (nginx reverse proxy, traefik, caddy, apache, whatever) and point your auto-mapping supported client at it (like Purus pasta)

Only other thing you need to do is setup users and set your zero grid.

Simply login as username admin, password admin, go to the admin portal, and hit "ADD USER". Don't forget to toggle on all the roles (you'll need admin, at least)

Once you create your first user, you'll get kicked out and have to log in as it. The admin user will be gone at this point. Next you'll want to add users for anyone else, and then you'll need to create your tokens to upload stuff.

You'll probably want to set the prefix (this gets put at the front of the tokens, and should be something like http://example.com) to make it easier to configure clients.

The first client to connect will set the 0,0 grid, but you can wipe the data in the admin portal to reset (and the next client to connect should set a new 0,0 grid)

Roles

  • Map: View the map
  • Upload: Send character, marker, and tile data to the server
  • Admin: modify server settings, create and edit users, wipe data

hnh-map's People

Contributors

andyleap avatar dependabot[bot] avatar octanewt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.