Git Product home page Git Product logo

milsymbol-server's Introduction

Milsymbol in Node.js

milsymbol-server

This is an example of how you can create a minimal military symbol server using Node.js and milsymbol.

It supports output of military symbols as SVG and as PNG, you can use all options available for milsymbol to add modifiers for your symbols as well.

Installation:

npm install milsymbol-server

To start the server, navigate to this folder in a terminal and run:

node index.js

Docker Container:

milsymbol-server will be available from Docker Hub, but at the moment you will have to build the server by your self by running

docker build -t spatialillusions/milsymbol-server:1.0.0 .

In order to run the server as a daemon and map the exposed port to your host just run

docker run -d -p 2525:2525 spatialillusions/milsymbol-server:1.0.0

The symbols are named SIDC.FILETYPE, and you can access them using:

http://${hostname}:${port}/SFG-UCI---.png or

http://${hostname}:${port}/SFG-UCI---.svg

You can add any milsymbol options to the query string

SFG-UCI---.png?uniqueDesignation=BA01&square=true

Public test server

Thanks to the wonderful people at syncpoint.io there is a public server that you can try out at:

https://milsymbol-server.syncpoint.io/

Here is a sample URL that you can try out:

https://milsymbol-server.syncpoint.io/SFGPEXL-----.svg?uniqueDesignation=MILSYMBOL&higherFormation=SYNCPOINT.IO

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.