Gitpod
    • Dark
      Light
    • PDF

    Gitpod

    • Dark
      Light
    • PDF

    Article summary

    The quickest way to set up a Rocket.Chat development environment is by using Gitpod. Gitpod offers a shared workspace for open-source project developers, including those working on SaaS projects like Rocket.Chat. It provides a hosted development environment accessible through a web browser, allowing you to contribute to Rocket.Chat conveniently.

    Set up a Rocket.Chat development environment in GitPod

    To set up a Rocket.Chat environment on Gitpod,

    • Go to Gitpod.

    • Create a New Workspace. Enter the Rocket.Chat GitHub project URL or the link to your forked repo of Rocket.Chat.

    • Initiate your workspace and, if needed, connect it to your GitHub account. This will set up a workspace with a familiar Visual Studio Code environment.

    • Next, launch a terminal within your workspace and proceed to install Meteor with this command, passing the required Metoer release:

    curl https://install.meteor.com/?release=2.12 | sh

    See the Rocket.Chat GitHub repository to confirm the required Metoer version for Rocket.Chat before installing.

    Alternatively, you can streamline the process by running this command:

    curl https://install.meteor.com/?release=$(
        curl -so- https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/apps/meteor/.meteor/release | cut -d@ -f2
    ) | sh

    Expect warning messages during this process, and keep in mind that sudo (root access) is not necessary on Gitpod.

    • Add the newly installed meteor to your path by running this command:

    export PATH=$PATH:/home/gitpod/.meteor
    • Install the node dependencies with this command:

    yarn

    You might encounter an error if your Node version doesn't meet Rocket.Chat's requirements. Check the release notes for the compatible Node.js version and install it accordingly.

    • Set your ROOT_URL. Your Rocket.Chat server may produce unexpected results without it.

    export ROOT_URL=$(gp url 3000)
    • Finally, build and start the Rocket.Chat server.

    yarn build
    yarn dev # it will build the sub projects and then run meteor project

    The code is spread through the folders, packages/ and apps/meteor. After a few minutes, your development environment will be up and running.

    Once the server starts a popup window will appear, confirming that your server is active on port 3000. Click the "Open Browser" button to access and engage with your Rocket.Chat server instance.

    To view your live Rocket.Chat environment, check your terminal for a message confirming successful deployment; this will also include the port number Rocket.Chat is running on.

    Once you have confirmed the deployment, you can start editing the code directly within Gitpod's code editor, the changes will also be reflected immediately in the Gitpod browser window.

    You can now start contributing to Rocket.Chat. To learn more about the contribution process, check out the contribution guide.


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence