amitbora

To Create Rocket Chat App

Dec 20th, 2024
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. npm install -g @rocket.chat/apps-cli
  2.  
  3. 2. rc-apps create
  4. App Name: Hello World
  5. App Description: A basic app that prints Hello World!
  6. Author’s Name: John
  7. Author’s Home Page: rocketchat.com
  8. Author’s Support Page: support.rocketchat.com
  9.  
  10. 3. Modify the class in the HelloWorldApp.ts file as follows:
  11.  
  12. export class HelloWorldApp extends App {
  13.     private readonly appLogger: ILogger
  14.  
  15.     constructor(info: IAppInfo, logger: ILogger, accessors: IAppAccessors) {
  16.         super(info, logger, accessors)
  17.         this.appLogger = this.getLogger()
  18.         this.appLogger.debug('Hello, World!')
  19.     }
  20. }
  21.  
  22. 4. rc-apps deploy --url http://localhost:3000/ -u test -p test
  23. Error: ⟿ Problems conecting to Rocket.Chat at http://localhost:3000/ - please check the address
Advertisement
Add Comment
Please, Sign In to add comment