Giter Site home page Giter Site logo

app-workshop-welcome-bot's Introduction

Setting Up the Rocket.Chat App starter code

This guide provides a brief overview of how to set up the starter code for the Rocket.Chat App. We will use this project during our App Development workshop.

Prerequisites

Before you begin, ensure you have the following:

  • Rocket.Chat server set up and running. We will provide a server during the workshop.
  • Linux OS or WSL with Node.js installed.
  • The Rocket.Chat Apps CLI installed. You can install it using npm with the command npm install -g @rocket.chat/apps-cli.
  • The starter code is already set up. Follow the below steps to set up the starter code.

Steps to Set Up this Rocket.Chat App

  1. Clone this repo:

    git clone https://github.com/abhinavkrin/app-workshop-welcome-bot.git
    
  2. Install the dependencies:

    npm install
    
  3. Edit app.json: Every Rocket.Chat app has a unique ID. To set this, you will need to replace the value in the id field of your app.json file with a unique UUID.

    • Obtain a UUID from UUID Generator and replace the id field in your app.json with this UUID.

    Example app.json snippet:

    {
      "id": "YOUR-UNIQUE-APP-ID",
      "name": "Your App Name",
      "description": "What your app does",
      ...
    }

    Replace YOUR-UNIQUE-APP-ID with the UUID you obtained. As a result each of you will have an app with unique app id.

  4. Edit GetInfo.ts: Since, each slash command is unique, we cannot havemore than one slash command with same command string. Edit slashCommands/GetInfo.ts

    export class GetInfo implements ISlashCommand {
        public command = "getinfo-YOURNAME";
        ...
    
        async executor(...): Promise<void> {
    
        }
    }
    

    Replace YOURNAME with your name. As a result, each one of you will will have a unique slash command.

  5. Check Setup and Confirm Seat Run a check if everything has been set up correctly:

npm run check-setup

If everything is set up correctly you can see a message like this: Screenshot from 2024-02-13 23-41-08

Visit the link and fill the form to confirm your seat. ๐Ÿฅณ

Develop Your App: (During Workshop)

With the project starter code configured, follow us along in the workshop to develop the app.

Deploy Your App: (During Workshop)

After developing your app, you can deploy it to your Rocket.Chat server for testing and use. Use the Rocket.Chat Apps CLI to package and deploy your app:

rc-apps deploy --url <url-of-rc-server> --username <username> --password <your-password>

Username and password will be provided during workshop

FAQ

1. Where can I find the final code?

The final code could be found in the final branch

2. When will the Username and Password for the test server be shared?

The credentials will be shared during workshop

3. What if I encounter errors during setup?

Please share your issue in the Events Channel.

4. Is setting up the project mandatory?

Yes. For best experience during the workshop, It is highly recommended that you have set up the starter code.

See you in the workshop! Don't forget to fill feedback form which will be provided at the end of the workshop.

app-workshop-welcome-bot's People

Contributors

abhinavkrin avatar nabhag8848 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.