From the course: Elixir 101: Essential Functional Programming Techniques
Using the exercise files - Elixir Tutorial
From the course: Elixir 101: Essential Functional Programming Techniques
Using the exercise files
- The materials for this course are available on GitHub. The course is organized into branches, and the branches correspond to the course videos. View a list of the branches for this repository in this dropdown menu. Videos only have a corresponding branch if they involve writing code. There can be one branch per video, or two. If there are two, the branch containing b represents the beginning state. This is the branch in which you begin the video. The second branch, with the e, is the ending state. It holds the state of the code at the end of the video, including code we've added or changed during the lesson. For example, if you want to find the beginning state for the second video in chapter three, look for the branch, 03 for the chapter, and 02 for the video. There are two. For the beginning, you would select 03_02b. Let's practice. We'll use the branch for this video, 00_03. First, we'll clone the repository, then we'll check out the correct branch. Clone by finding the clone URL. Click the Code button, then SSH, and copy the URL with this copy icon button. Open the terminal, if you are on a Mac, or the command line tool of your choice. Navigate to the location where you store your programming projects, and run the command to clone this project repository, git clone and the URL we copy; and next, we will change directories into that repository. And then check your branch. Initially, you start off on the main branch. We need to fetch all of the remote branches. We do that with git fetch origin. Then, we can check out the branch for this video. git checkout 00_03. And now we are on the branch, 00_03. If you have any trouble, check out the GitHub projects README, or GitHub's documentation for help. Visual Studio Code is an integrated development environment, or IDE, for developing computer programs. I will be using it to navigate inside our project, interact with the shell, write code, and run tests. I encourage you to follow along with me. From inside the directory holding the repository code, I can open the project in Visual Studio Code like this, code . On the left is the Explorer menu. It displays the project directory. The exercise files will appear in this area as we progress through the lessons. The file for this video is welcome.ex. The .ex extension indicates the file contains Elixir code, and it will be compiled. This is the file in the Editor section of VS Code. This is the panel where we will write and revise our code during lessons. Next, open a terminal. We do this by selecting Terminal, and then New Terminal. If you run into any trouble performing these steps, or using git, I recommend searching the LinkedIn Learning library for are the Git Essentials Training videos, and the Visual Studio videos. As a learning course, there will be many topics we touch on only briefly. The course files include a README with resources for learning more about any Elixir topic. Now we're all set up to install Elixir. That's our next step. Let's go.