Skip to content

Ada-C21/student-app-with-copilot

Repository files navigation

Student App with Copilot

Based on the Unit 3 Student App, this version has been modified to provide an example of how to use GitHub Copilot to generate and refactor code and tests.

The main branch is the starting point for the Copilot example. The copilot branch contains the results of running through the implementation of the Student component, some refactors, and tests using Copilot.

The major steps in the process are:

  • use a Copilot prompt to generate code for the Student component
  • use Copilot prompts to address issues with the generated code, such as
    • add missing imports
    • name variables appropriately
    • include proptypes
    • use good practices to apply style to the component
    • etc
  • refactor StudentList using Copilot
    • call the new Student component
    • use prop destructuring
    • perform the data map inline in the JSX
    • etc
  • use Copilot to write tests for the application
    • adding a student
    • changing the absence status of a student
    • etc

Setup

Install dependencies

npm i

Execute

npm run dev

Run tests

npm test

Run code coverage

npm run coverage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published