Assignment: Exploring YAML and Creating Configuration Files
Objective: The goal of this assignment is to familiarize yourself with YAML syntax and create simple configuration files using YAML for various scenarios.
Instructions:
Part 1: YAML Basics 1. Review the provided tutorial on YAML basics to refresh your understanding of YAML syntax, including key-value pairs, lists, nested structures, comments, scalars, multiline scalars, and special characters.
Part 2: Configuration File Creation Choose one of the following scenarios and create a YAML configuration file based on the given requirements:
Scenario 1: Project Configuration You are working on a software project and need to create a configuration file to store project-specific settings.
Requirements:
- Create a YAML configuration file named project_config.yml
.
- Include project information such as project name, version, and description.
- Define a list of contributors’ names.
- Specify default values for configuration settings (e.g., timeout, logging level).
Scenario 2: Personal Information You want to keep track of your personal information in a YAML file.
Requirements:
- Create a YAML configuration file named personal_info.yml
.
- Include your name, age, major, and contact details (email).
Part 3: Submit
- Submit both the YAML configuration file you created (project_config.yml
and personal_info.yml
) to GitHub Classroom.
Submission Guidelines: - Submit the document through GitHub Classroom.
Grading Criteria: - Correct and complete YAML syntax implementation in the chosen scenario. Be sure to validate your YAML. - Inclusion of all required elements for the chosen scenario. - Adherence to submission guidelines and deadlines.
Note: This assignment is designed to help you practice creating YAML configuration files for different scenarios. It will help reinforce your understanding of YAML syntax and its practical applications in real-world settings.
Last Updated 08/30/2023