Service-template-node/GettingStarted

This guide will walk you through the most basic steps needed to create a new service based on the service-template-node project. As an example we'll build a micro-service that does nothing more than convert an SVG stored in MediaWiki to PNG, and return it the user. We will call this new service svg2png.

= Creating the service = The service-template-node project is meant to act as a skeleton, providing new projects with all of the boiler plate needed to hit the ground running with a web service that conforms to best-practices. To create your new service, start by cloning.

$ git clone https://github.com/wikimedia/service-template-node.git svg2png

Project metadata
In the top-level of your new project is a file named  that contains important meta-data. After cloning the new repository, this meta-data naturally pertains to the service-template-node project, so open it with the editor of your choice, and customize it for our svg2png service. At a minimum, you should update the,  ,  ,  ,  , bug tracking URL , and.

Note: A complete description of  is beyond the scope of this document; You are encouraged to consult the documentation for.

Configuration
Edit the configuration file to set the service name and a port to listen on.

Dependencies
Install the project dependencies, (including librsvg-dev). = Adding a route = = Testing = = Next steps =