Cloning Samples

To get started, we are going to clone the product catalog from https://Github.com/flakio/catalog to your local machine. Because later in the chapter we will use local volume mounting, it’s important that you run your clone command from within a user folder like the “Documents” (C:users<username>Documents) folder. This is because VirtualBox only mounts user folders by default.

From a Mac terminal, type the following:

cd ~
mkdir DockerBook
cd DockerBook
git clone https://github.com/flakio/catalog

From the Windows command prompt, type the following (replace the username as appropriate) to create a new directory named “DockerBook” and clone our repository into it as shown in Figure 4.4:

cd c:Users<username>Documents
mkdir DockerBook
cd DockerBook
Git clone https://github.com/flakio/catalog

Image

FIGURE 4.4: Cloning the Product Catalog project

Now that we have the code locally, the first thing we’re going to do is set up our project using live reload.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.47.218