Skip to content

Sample plugin for Brew Authentication Service. It appends the \"Text3\" text using appendText method of PluginTestService.

Notifications You must be signed in to change notification settings

BrewInteractive/authentication-service-nestjs-sample-plugin

Repository files navigation

Brew Logo

Authentication Service Nest.js Sample Plugin

In this project, we will add a new plugin to a Nest.js application using a plugin included in the @brewww/authentication-service package.

Installation

Run yarn install command to install all necessary packages required to run the project.

Usage

  1. To run your project.
# development

$ yarn run start

Testing

To test your project.

# unit tests

$ yarn run test

# test coverage

$ yarn run test:cov

All tests are expected to pass.

Usage Instructions

Add the following line to the peerDependencies section in your package.json file:

"peerDependencies": {
	"@brewww/authentication-service": "^1.1.2"
}

This plugin derives from the BasePlugin class found in the @brewww/authentication-service package. It appends Text3text using appendText method of PluginTestService.

Plugin Instructions

Example plugin settings package.json

"authenticationService": {
	"name": "text3-appender",

	"displayName": "Text3 Appender",

	"type": "plugin"
}
  • "name": This key contains the value "text3-appender" and specifies the name of the operation that is defined as part of the "authenticationService" object.

  • "type": This key contains the value "plugin" and specifies that the "authenticationService" object is a plugin.

  • "displayName": This key contains the value "Text3 Appender" and specifies the name that will be displayed in a user interface for the "authenticationService" object.

Conclusion

Now the plugin is ready to use in your Nest.js application. Launch the application and verify that the plugin is working correctly.

Stay in touch

LinkedIn - Twitter - Instagram

License

Authentication Service Nestjs Sample Plugin is MIT licensed.

About

Sample plugin for Brew Authentication Service. It appends the \"Text3\" text using appendText method of PluginTestService.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •