Tooling
We use a lot of different tools to develop MindSpaces. This section contains information about the tools that we use to develop MindSpaces. Both how to install them, how we use them and why we use them.
Git
For version control we use Git. Git is a version control system. It allows you to keep track of changes to the codebase. Just as important, it allows you to collaborate with other developers.
Installation
- Windows
- Linux
- MacOS
- Go to the official Git for Windows website at https://git-scm.com/download/win.
- Click the "Download" button to download the Git installer
- Once the download is complete, open the installer by double clicking the downloaded file.
- Follow the prompts in the Git installer to complete the installation. By default, Git will install to C:\Program Files\Git.
- During the installation process, you may be prompted to select components to install. Make sure that "Git Bash Here" and "Git GUI Here" are selected if you want to use these tools.
- Once the installation is complete, you can open Git Bash to use Git on your Windows machine. You can find Git Bash in the Start menu under "Git".
This guide is for Debian based distributions, for other flavors of Linux, please see the official Git Installation Guide.
- Open the terminal on your Linux machine.
- Update your package manager's cache by typing the following command and pressing enter:
sudo apt-get update - Install Git by typing the following command and pressing enter:
sudo apt-get install git - The package manager will prompt you to confirm the installation. Type "y" and press enter to continue.
This guide uses Homebrew to install Git, if you can not use Homebrew please see the the Git Installation Guide for alternatives
- Open the Terminal app on your macOS machine. You can find it in the Applications > Utilities folder, or by using Spotlight search.
- Install Homebrew if you don't have it already. Type the following command and press enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Once Homebrew is installed, update your Homebrew package list by typing the following command and pressing enter:
brew update - Install Git by typing the following command and pressing enter:
brew install git
Finally, to verify that Git has been installed correctly, open Git Bash and type the following command:
git --version
This command will display the current version of Git and verify that it has been installed correctly. And that's it! You now have Git installed on your Windows machine.
Node
Node is a JavaScript runtime environment. It allows you to run JavaScript code outside of a browser. We use Node to build our frontend for MindSpaces.
Installation
- Windows
- Linux
- MacOS
- Download the Node.js Installer by opening a powershell window and typing the following command, then pressing enter:
curl -LO https://nodejs.org/dist/v18.14.2/node-v18.14.2-x64.msi - Install Node.js by typing the following command and pressing enter:
msiexec.exe /i node-v18.14.2-x64.msi /quiet - Verify that Node.js has been installed correctly by typing the following command and pressing enter:
node -v - The command should output the version number of Node.js (e.g. `v18.14.2`). If it does, then Node.js has been successfully installed on your Windows machine!
This guide is for Debian based distributions, for other flavors of Linux, please see the official Node Installation Guide.
- Add the Node.js repository to the package manager's sources by opening a terminal window and typing the following command, then pressing enter:
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - - Install Node.js by typing the following command and pressing enter:
sudo apt-get install -y nodejs - Verify that Node.js has been installed correctly by typing the following command and pressing enter:
node -v - The command should output the version number of Node.js (e.g. `v18.14.2`). If it does, then Node.js has been successfully installed on your Linux machine!
This guide uses Homebrew to install Git, if you can not use Homebrew please see the the Git Installation Guide for alternatives
- Open the Terminal app on your macOS machine. You can find it in the Applications > Utilities folder, or by using Spotlight search.
- Install Homebrew if you don't have it already. Type the following command and press enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Install Node.js by typing the following command and pressing enter:
brew install node@18.14.2 - Verify that Node.js has been installed correctly by typing the following command and pressing enter:
node -v - The command should output the version number of Node.js (e.g. `v18.14.2`). If it does, then Node.js has been successfully installed on your macOS machine!
You now have successfully installed NodeJS on your machine!
Docker
If you use Docker Desktop, then Docker Compose is already installed. Otherwise you might need to install it separately. For more information, please see the Docker Compose Installation guide.
Installation
- Windows
- Linux
- MacOS
- Go to the Docker website at https://www.docker.com/products/docker-desktop.
- Click the "Download Docker Desktop" button to download the Docker Desktop installer.
- Once the download is complete, double-click the downloaded file to launch the Docker Desktop installer.
- Follow the prompts in the Docker Desktop installer to complete the installation. By default, Docker Desktop will install to `C:\Program Files\Docker\Docker`. During the installation process, you may be prompted to enable Hyper-V and/or WSL 2 (Windows Subsystem for Linux) if they are not already enabled on your Windows machine. Make sure to enable them if prompted.
- Once the installation is complete, Docker Desktop should launch automatically.
- You can verify that Docker Desktop has been installed correctly by opening a command prompt or PowerShell window and typing the following command:
docker version - This command will display the current version of Docker Desktop and verify that it has been installed correctly.
- Optionally, you can also open the Docker Desktop application and confirm that it is running by checking the Docker icon in the system tray.
This guide is for Debian based distributions, for other flavors of Linux, please see the official Docker Installation Guide.
- Open a terminal window on your Linux machine.
- Update your package manager's cache by typing the following command and pressing enter:
sudo apt-get update - Install required packages for the Docker repository by typing the following command and pressing enter:
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release - Add Docker's official GPG key by typing the following command and pressing enter:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg - Add the Docker repository to your system's sources list by typing the following command and pressing enter:
echo \ "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null - Update your package manager's cache again by typing the following command and pressing enter:
sudo apt-get update - Install Docker by typing the following command and pressing enter:
sudo apt-get install -y docker-ce docker-ce-cli containerd.io - Once the installation is complete, you can verify that Docker has been installed correctly by typing the following command and pressing enter:
sudo docker run hello-world - This command will download a test image and run a container, and then display a message confirming that Docker is running correctly.
- If you want to use Docker without needing to use sudo every time, you can add your user to the docker group by typing the following command and pressing enter:
sudo usermod -aG docker $USERAfter running this command, you will need to log out and log back in for the changes to take effect.
- You can also check the version of Docker that is installed by typing the following command and pressing enter:
docker version
- Go to the Docker website at https://www.docker.com/products/docker-desktop.
- Click the "Download Docker Desktop" button to download the Docker Desktop installer.
- Once the download is complete, double-click the downloaded file to launch the Docker Desktop installer.
- Follow the prompts in the Docker Desktop installer to complete the installation.
- Once the installation is complete, Docker Desktop should launch automatically.
- You can verify that Docker Desktop has been installed correctly by opening a terminal window and typing the following command:
docker version - This command will display the current version of Docker Desktop and verify that it has been installed correctly.
- Optionally, you can also open the Docker Desktop application and confirm that it is running by checking the Docker icon in the system tray.
You now have successfully installed Docker on your machine!