code-differently-24-q4

Lesson 02: Developer Workflow: Navigating the Terminal (Slides)

Pre-work

Please review the following resources before lecture:

Homework

Prerequisites

To complete this assignment, you must have Docker and VS Code with the Dev Containers extension installed.

Lesson 02 Quiz Instructions

For this assignment, you will complete a quiz by modifying a TypeScript application. Within the quiz project, there are tests that you will need to make pass in order to submit your answers. Here are the instructions for completing the assignment:

  1. Make sure to sync your fork to pull in the latest changes.
  2. Open the project in VS Code and make sure to select Reopen in Container when prompted.
  3. Navigate to the quiz directory and install the required dependencies.
    cd lesson_02/quiz
    npm install --prefix ../../lib/javascript/codedifferently-instructional
    npm install
    npm start
    
  4. Open the lesson2.ts file located in the quiz/src/ directory.
  5. Update the code to provide the correct answers to the given questions.
  6. When ready to test, run the following command in the quiz sub-directory using the terminal:
    npm run test
    
  7. Once all tests pass, submit your work by creating a pull request (PR).