Below the input fields are buttons labelled "Back" and "Continue". Image showing Server Info modal, with inputs for Site Name set to fCC ChatBot tutorial, Language set to Default, Server Type with no selection made, and Auto opt in new users for Two Factor via Email set to No. Here you set the name for your chat server (which will appear in the title metadata), your default language, the server type, and the 2FA setting.īe sure to turn off the automatic 2FA setup for your local instance or you could be locked out of your own server. For this tutorial, we will leave this information blank.Ĭlicking Continue will take you to the Server Info page. The next screen is the Organization Info screen. Below the input fields is a button labelled Continue. Because this is a local instance, your credentials' security is less important than in a live instance.įill in your information to create the admin account: Image showing the Admin Info modal, with inputs for Name set to Nicholas Carrigan, Username set to nhcarrigan, Organization Email set to and Password which is obfuscated. Most developers use the Admin account for root-level access to configure their chat. The first screen you see will be the Setup Wizard, which will walk you through creating your Admin account. Now if you open your browser and navigate to localhost:3000 you should see your local Rocket.Chat instance. Three docker images were created, and each shows done. You should see three success messages in your terminal: Image showing the console output for the docker-compose up -d command. The instance can be switched on and off through the desktop GUI. Then open your terminal pointed at that same directory and run: docker-compose up -d If you are using Docker desktop, this only needs to be run once. ROOT_URL= ROCKETCHAT_VERSION=latest The filename is specific to our repository. env file and insert the following contents: COMPOSE_FILE= Within your Rocket.Chat directory, create a. I personally use Windows 10, so I installed the Docker desktop client and had to enable hardware virtualisation in my BIOS. The installation process is different for each operating system. Note: If you do not have docker installed, you will need to install it. This tutorial will assume that you are using our existing docker file. You can either clone this repository, or manually create your own docker file based on our configuration. You can use freeCodeCamp's docker file, which will spin up both Rocket.Chat and MongoDB automatically for a development environment. Your first step is to get an instance of Rocket.Chat running locally – you will need this to test the bot's functionality. This code is now running in production, and lots of people are using it. This is the same process I used to build freeCodeCamp's moderation chat bot for our community's self-hosted chat server. Today I will show you how to build your own Rocket.Chat bot and test it locally.
0 Comments
Leave a Reply. |