Skip to content

marcsugiyama/pinafore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinafore

Pinafore is a REST and websocket-based hexagonal map service. Clients can set metadata on tiles, subscribe to messages sent to tiles, and subscribe to changes in the metadata on tiles.

Current Status

Defining the REST interface.

REST interface

Endpoint Action Example Description
/map/Q,R GET /map/0,4 get the metadata at location 0, 4
/map/Q,R/metadata/K PUT /map/0,4/metadata/mykey update the value associated with mykey at 0,4
/map/Q,R/message POST create and send a message
/map/Q,R?radius=Radius GET /map/0,4?radius=2 get metadata for all tiles within two tiles of 0, 4
/map/Q,R/subscribe POST /map/0,4/subscribe create subscription to metadata changees or messages to 0, 4

Metadata is key, value pairs.

The server pushes metadata changes or messages via websocket.

References

Building and Starting

To start your Phoenix app:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with npm install
  • Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

About

Hexagonal Map Server (HMS) in Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published