By following this guide, you should be able to have all of the necessary software required for working on chessBots!
[!NOTE]
There may be differences in the setup process for PC vs. Mac. Overall, both processes will be very similar.
Git is the software that allows users to collaborate with their code! Having this allows you to pull the latest version of the ChessBot Repository onto your computer. If you already have Git installed, you can bypass this step. If you aren't sure, follow along. The simplest way to ensure Git is set up properly is to use a client like GitHub Desktop. This is how we will install moving forward.
[!TIP] If you already have an account, you can use your existing one
VSCode is simply a text editor with a lot of great features for software development, such as powerful extensions, syntax hinting, and Git integration. This is what we recommend for all chessBot development for its ease of use. If you want to use another text editor, you may have a more difficult time moving forward since some of our extensions may not be compatible.
[!NOTE] If you are using MacOS, make sure to move to the application folder! It is not automatic for VSCode!
Node is the software package that the chessBot web engine is built upon. Installing it is crucial for the install NPM packages and compiling the software.
[!IMPORTANT]
Select the LTS version, not current version
Python is required for PlatformIO, the software that allows us to upload code to the chessBot MicroControllers.
Now that all the software is installed, we can setup our environment for chessBots! The way I describe is my personal preference, so you can make some changes along the way if preferred. For simplicity, feel free to follow my steps exactly.
Having a dev folder is important. This is a location where git can pull your projects to, and a central location for all of your development work. It is important to avoid syncing your code in a cloud location, such as OneDrive, iCloud, Google Drive, Box, or Dropbox. This can cause issues when working with git, and should be avoided! Instead, backup your files the old fashioned way with an external drive, or make sure your work is pushed to Git.
C:/Users
[!WARNING] Saving your dev folder to Desktop or Documents is risky. These locations may be synced by Onedrive on your system, which can cause damage!
Setting up a dev folder on MacOS is simple!
[!WARNING] Saving your dev folder to Desktop or Documents is risky. These locations may be synced by iCloud on your system, which can cause damage!
Now, we need to pull the latest version of the chessBot project to our computer. For this, we will use Github Desktop. If you prefer to use the command line, feel free, we will not be explaining that in this guide.
[!IMPORTANT] Make sure to include the
/chessBot
at the end. This will create a chessBot folder for the project.
Our last step is to setup VSCode for the project.
ChessBots rely on a variety of external software in order for our code to run. To do this, we use yarn to manage the packages needed.
npm install --global yarn
[!NOTE] You may need to provide elevated access. Use sudo on MacOS and Administrator on Windows
yarn install
yarn dev
localhost:3000
In some situations, Windows will claim you do not have permission to run commands. Follow these steps to fix:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Generated using TypeDoc