文档/服务
服务目标
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:
- 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
话题
部署
参见服务部署和操作指南。
维基媒体制作服务