wechatmp-backend-shared-modules
v1.0.0
Published
## How-to
Downloads
74
Readme
Shared Modules
How-to
Publish a version
You have two registries to publish into
@nike:registry=https://artifactory.nike.com/artifactory/api/npm/npm-local/
@nike-gc-digital-tech:registry=https://npm.pkg.github.com
For old packages (before C4C), use @nike:registry
, for latest packages, use @nike-gc-digital-tech:registry
:
Go to your packages and:
yarn build
yarn publish
Install a dependency
yarn install
If you met any problems, check Pre-installation
Coding standard
All coding must meet TypeScript coding guidelines, and api must follow Nike's API Standard
List of modules:
Packages
| Package Name | Brief Description | |--------------|-------------------| | nestjs-auth-middleware | General auth-middleware | | nestjs-cms-service | Fetch thread and collection and some basic normalizers. | | nestjs-dynamodb-service | Dynamodb nestjs wrapped service | | nestjs-pagination-service | to paginate list of data in Nike's API Standard | | nestjs-redisclient-service | Redis nestjs wrapped service | | nestjs-s3client-service | S3 nestjs wrapped service | | nestjs-sns-service | AWS SNS nestjs wrapped service | | nestjs-tracing-middleware | Add traceId to logs |
How to use in Wechat Backend Services
skeleton project:
https://github.com/nike-gc-digital-tech/swoosh-nodejs-app-boilerplate
This includes all the common modules pre-installed.
TODO list
- nestjs-sqs-service
- nestjs-user-logging
- nestjs-wechat-services