Task 01 - Clone the GitHub repository for the project to your local machine
Introduction
The Contoso Hotel app is monolithic. Front-end components (HTML, CSS, and JavaScript files) and back-end components (APIs) are all deployed as a single unit. The files required to deploy the legacy app are stored in a GitHub repository.
Description
In this task, you’ll clone the GitHub repository to the Downloads folder on your local machine.
The key steps are as follows:
- Clone the GitHub repository for the project to the Downloads\ContosoHotel folder.
- Verify that the files are present on your local machine.
Success Criteria
- The files for the legacy app are available in the Downloads\ContosoHotel folder on your machine.
Learning Resources
Solution
Expand this section to view the solution
-
Open File Explorer on your computer and go to the Downloads folder.
-
Modify the value of the following variable to reflect the path to the Downloads folder on your computer. Enter the command at the Visual Studio Code Terminal window prompt and select Enter to set your Downloads folder path as a variable.
$PATH_TO_DOWNLOADS_FOLDER = "C:\Users\Admin\Downloads"
-
Enter the command at the Visual Studio Code Terminal window prompt and then select Enter to clone the GitHub repository to the Downloads\ContosoHotel folder on your computer.
git clone https://github.com/qxsch/ContosoHotel "$PATH_TO_DOWNLOADS_FOLDER\ContosoHotel"
-
Open File Explorer and go to your Downloads folder. Verify that the ContosoHotel folder and files are present.
-
Leave Visual Studio Code open. You’ll use the tool in the next task.