GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Get MediaWiki
  • Get extensions
  • Tech blog
  • Contribute
  • User help
  • FAQ
  • Technical manual
  • Support desk
  • Communication
  • Developer portal
  • Code statistics
  • Community portal
  • Recent changes

This view

  • Original page
  • New address

GeezerVison is showing www.mediawiki.org — Service-template-node - MediaWiki

The service-template-node project was a template for creating MediaWiki services in Node.js. It used technologies such as service-runner, Bluebird promises, express.js, mocha, istanbul, and Docker to make it simple to create robust services that conform to best practices.

The template has not been maintained and is no longer recommended for use. It is now recommended you use native Promises instead of Bluebird as the library is no longer maintained. Several services have removed dependency on service-runner and you should not expect it to be maintained in the near future.

Migration guide:

Consider using service-utils for easier migration.

  • Use Node >= 20
  • Replace preq (deprecated) with fetch (native)
  • Replace bluebird (no longer maintained) with Promise (native)
  • Replace istanbul (deprecated) with nyc (maintained)

Optional

  • Replace mocha (still maintained) with test runner (native)

See also:

  • https://gerrit.wikimedia.org/r/q/servicelib-node, which aimed to be a library rather than a template, performing a similar function and using many of the same functions (also not maintained.)
  • https://gitlab.wikimedia.org/repos/data-engineering/service-utils, which aims to replace some of the functionality of service-runner

Topics

  • API design practices
  • Overview
  • Configuration
  • Useful Commands
  • Coding guide
  • Deployment
  • Keeping your service up-to-date
Retrieved from "https://www.mediawiki.org/w/index.php?title=Service-template-node&oldid=7685484"
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.