Skip to content

HarvirChima/copilot-spaces-demo

Repository files navigation

GitHub Copilot Spaces Demo Repository

Welcome! This repository is designed to help you demonstrate GitHub Copilot Spaces capabilities to developers new to GitHub Enterprise Cloud (GHEC).

What is GitHub Copilot Spaces?

GitHub Copilot Spaces is an AI-powered workspace that helps developers with complex tasks like:

  • Building new features across multiple files
  • Debugging and fixing issues
  • Refactoring code
  • Understanding unfamiliar codebases
  • Writing tests and documentation

Demo Scenarios in This Repository

This repository contains multiple projects and scenarios to showcase Copilot Spaces:

1. Python API Project (/python-api)

A Flask-based REST API for managing a customer database. Great for demonstrating:

  • Building new API endpoints
  • Adding authentication
  • Writing tests
  • Debugging issues

2. Node.js Application (/nodejs-app)

A simple Express.js web server. Perfect for showing:

  • Adding new routes
  • Implementing middleware
  • Error handling
  • Refactoring

3. Data Processing (/data-scripts)

Python scripts for data analysis. Ideal for:

  • Working with CSV/JSON data
  • Data transformation
  • Adding visualization

4. Database Schema (/database)

SQL schemas and migration scripts. Demonstrates:

  • Creating new tables
  • Writing complex queries
  • Schema migrations

5. Bug Scenarios (/bug-examples)

Intentional bugs for debugging demos. Shows:

  • Finding and fixing bugs
  • Understanding error messages
  • Code analysis

How to Use This Demo

Setup Your Copilot Space

  1. Open this repository in GitHub
  2. Click on "Code" → "Open with Copilot"
  3. Or use the GitHub CLI: gh copilot space create

Demo Scenarios to Try

Scenario 1: Add a New API Endpoint

Task: "Add a new endpoint to the Python API that returns customer statistics"

  • Navigate to /python-api
  • Ask Copilot to add the endpoint
  • Watch it modify multiple files

Scenario 2: Fix a Bug

Task: "There's a bug in the bug-examples folder causing a null pointer error"

  • Open the bug example file
  • Ask Copilot to identify and fix the bug
  • See it explain the issue

Scenario 3: Write Tests

Task: "Add unit tests for the customer service"

  • Ask Copilot to generate comprehensive tests
  • See it create test files with proper structure

Scenario 4: Refactor Code

Task: "Refactor the data processing script to use pandas instead of manual loops"

  • Show how Copilot can modernize code
  • Demonstrate understanding of best practices

Scenario 5: Add Documentation

Task: "Add docstrings and README documentation for the Node.js app"

  • Watch Copilot generate comprehensive docs
  • Show understanding of project structure

Key Features to Highlight

  1. Multi-file Editing: Copilot can modify multiple files simultaneously
  2. Context Awareness: It understands your entire codebase
  3. Best Practices: Follows language-specific conventions
  4. Testing: Can write comprehensive test suites
  5. Debugging: Helps identify and fix issues
  6. Documentation: Generates clear, helpful documentation

Tips for a Great Demo

  • Start with simple tasks and progress to complex ones
  • Show how Copilot asks clarifying questions
  • Demonstrate error handling and validation
  • Highlight time savings compared to manual coding
  • Show the chat interface and inline suggestions

Questions Your Audience Might Have

Q: Does it work with our existing code? A: Yes! Copilot Spaces understands any codebase.

Q: What languages are supported? A: Python, JavaScript, TypeScript, Java, C#, Go, Ruby, and many more.

Q: Is my code secure? A: Your code is encrypted and private. GitHub doesn't use GHEC customer code for training.

Q: Can it handle complex architectures? A: Yes! It can work with microservices, monoliths, and complex projects.

Additional Resources

License

MIT License - Feel free to use this for your demos!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •