Skip to content

Latest commit

 

History

History
118 lines (67 loc) · 5 KB

node-calculator-readme.md

File metadata and controls

118 lines (67 loc) · 5 KB

Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge

Copilot Operations Demo

Introduction

⚠️ Note: The primary objective of this demo Repository is not to complete all the exercises such as the calculator app; that aspect serves as a guide for walking you through the exercise steps. If you don't achieve the exact results by the end, that's perfectly fine! What matters most is that you gain insight into how to use Copilot effectively.

Overview

Our goal is to acquaint you with Copilot's functionalities and demonstrate diverse ways to interact effectively with Copilot.

Copilot and Copilot Chat, while built on the same backend technology, serve distinct roles within your integrated development environment (IDE). To put it simply, Copilot functions as a coding assistant, responding to your in-code context, while Copilot Chat operates as your research assistant, enabling chat-based communication for more interactive collaboration with Copilot.

As this exercise leverages Copilot for code suggestions, please note that Copilot's responses may vary depending on the context. We welcome this variability, as it showcases the dynamic capabilities of Copilot.

For effective interaction with Copilot, it's essential to keep in mind that Copilot benefits from your guidance and supervision!

To use copilot's own words,

copilot "I’m powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve."


We Offer 2 Examples


These are demonstrations for utilizing GitHub Copilot within Visual Studio Code. This demo highlights essential features of the Copilot extension for the benefit of class attendees.

We employ the CodeTour extension to guide you through an example of a React Calculator App.

Prerequisites & Options

Here are some options and requirements on how to run this demo.

Note: we are using VS-Code

We recommend to run this via GitHub Codespaces. We provide a Devcontainer configuration that provides all the required IDE components (VS Code).

Option 2: VS Code + Devcontainers

If you don't want to use Codespaces, just clone this Repo and use a local Devcontainer in your VS-Code IDE.

Option 3: VS Code + CodeTour extension (Local)

If you want to run this Demo on your local platform (no Codespaces, no Devcontainers), please have look a at the required tools.

Here are some requirements you'll need:


REACT-Calculator

Before you Start the Tour

We provide you with several Code Tour exercises, to practice Copilot interactions. The first step is to setup/start the calculator app.


Start the Calculator App

npm install
npm start

Note: At the start of the CodeTour your browser should not show the calculator, yet, adding this is part of the Demo. This is what you should see...

calculator

Note: By the time the Demo is completed, the App should look like this...

calculator


⚠️ TO RUN THE TOUR 'MANUALLY', PLEASE REFER TO COPILOT-OPERATIONS.MD


Start the tour ...

Here is a screenshot of what the CodeTour extension looks like in the IDE (VS-Code).

codetour

By clicking the 'play' button, CodeTour will open a code Tab (App.js) showing the first CodeTour steps...

codetour-start

Note: These are exercise items that should be addressed in the Demo

Copilot Copilot Chat
Inline help Say Hello
Open the Completions Panel Check its limits
Fix using Copilot Test its knowledge
Explain using Copilot Topics ‘/’