
ghca supply chain
展示 GitHub Copilot 和 GHAS 功能的终极供应链管理系统。
Repository Info
About This Server
展示 GitHub Copilot 和 GHAS 功能的终极供应链管理系统。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
🚀 OctoCAT Supply Chain: The Ultimate GitHub Copilot Demo
!OctoCAT Supply Chain
Welcome to the OctoCAT Supply Chain Management System - your go-to demo for showcasing the incredible capabilities of GitHub Copilot, azd, and the power of AI-assisted development!
✨ What Makes This Demo Special
This isn't just another demo app - it's a carefully crafted showcase that demonstrates the full spectrum of GitHub's AI capabilities:
- �� Copilot Agent Mode & Vision - Watch Copilot understand UI designs and implement complex features across multiple files
- 🎭 MCP Server Integration - Demonstrate extended capabilities with Playwright for testing and GitHub API integration
- Azure Developer CLI (azd) - Use azd to deploy and manage the application seamlessly
- 🔄 CI/CD & IaC - Generate deployment workflows and infrastructure code with natural language
- 🎯 Custom Instructions - Show how Copilot can be tailored to understand internal frameworks and standards
��️ Architecture
The application is built using modern TypeScript with a clean separation of concerns:
erDiagram
Headquarters ||--o{ Branch: has
Branch ||--o{ Order: placed_at
Order ||--o{ OrderDetail: contains
OrderDetail ||--o{ OrderDetailDelivery: fulfilled_by
OrderDetail }|--|| Product: references
Delivery ||--o{ OrderDetailDelivery: includes
Supplier ||--o{ Delivery: provides
Tech Stack
- Frontend: React 18+, TypeScript, Tailwind CSS, Vite
- Backend: Express.js, TypeScript, OpenAPI/Swagger
- DevOps: Docker
🎯 Key Demo Scenarios
-
Vibe Coding
- Implement a shopping cart from a design mockup
- Watch Copilot analyze, plan, and implement across multiple files
- Show real-time UI updates and state management
-
IaC Code Generation
- Generate Bicep templates using prompts
-
IaC Code Generation using azd
- Set up the application using azd
- Deploy the application to Azure with a single command
-
DevOps Automation
- Generate GitHub Actions workflows
- Create infrastructure as code
- Set up container deployments
🚀 Getting Started
- Clone this repository
- Build the projects:
# Build API and Frontend npm install && npm run build - Start the application:
npm run dev
Or use the VS Code tasks:
Cmd/Ctrl + Shift + P->Run Task->Build All- Use the Debug panel to run
Start API & Frontend
Local vs Codespaces
- This demo can work in a Codespace or locally.
- For Codespaces, ensure you have the necessary ports exposed in your
.devcontainer.json. - For local development, ensure you have Docker installed and running.
Full end-to-end Azure Deployment Demo (optional)
This demo requires the following:
az cliandgh clifor configuring the Azure environment as well as the repo (Environments and vars, as well as OIDC config)- You will need an Azure Subscription, of which you have owner permissions
- To configure the environment, run
az loginand make sure you have selected the correct subscription. - Run the following command:
./infra/configure-deployment.sh <repo-name>and make sure that it completes successfully. If it does, you will have:- An Azure Service Principal, correctly configured for deployment
- 2 Azure Resource Groups (one for Prod and one for Staging)
- an Azure Container Registry (in the prod resource group)
- 2 Environments in the Repo (Staging, Prod) with manual approval configured on Prod
- Actions Variables - all the vars that are needed to run the workflows
- OIDC configuration - the script configures OIDC connection for the repo/environments so you don't have to store any secrets in GitHub!
Demo: Using Vision and Agent to Generate Cart Functionality
- What to show: "Vibe coding" using Agent Mode and Vision to complete complex tasks.
- Why: Demonstrate how Copilot Vision can detect design and how Agent can understand a codebase and create complex changes over multiple files.
- How:
- Run the App to show the original code. Once the site starts, click on "Products" in the NavBar and show the Product Page. Add an item to the Cart - note that nothing actually happens, except a message saying, "Added to Cart". Explain that there is no Cart in the frontend app currently.
- Open Copilot and switch to "Ask" mode. Add the
planprompt to the chat.- Attach the cart image using the paperclip icon or drag/drop to add it to the chat.
- Enter the following prompt:
I need to implement a simple Cart Page. I also want a Cart icon in the NavBar that shows the number of items in the Cart. - Highlight that Copilot has suggested changes and planned the components to add/modify and even asked clarifying questions.
- Answer some of the questions if you want to refine the plan.
- Switch to "Agent" mode in Copilot Chat. Switch to
Claude 3.5 Sonnet(a good implementation model) and enter this prompt:Implement the changes. - Show Copilot's changes and how you can see each one and Keep/reject each one.
- Accept Copilot's suggested fixes.
- Go back to the Frontend app. Navigate to Products. Show adding items to the cart (note the icon updating). Click on the Cart icon to navigate to the Cart page. Show the total, and adding/removing items from the cart.
Demo: Automating Deployment with GitHub Actions, Azure and Bicep
- What to show: Copilot generating Actions workflows and Infrastructure-as-code.
- Why: Show Copilot's ability to automate CI/CD workflows.
- How:
- Ensure that you have run the configure-deployment.sh script to set up the initial infrastructure and configure the environments and vars in the repo.
- Add the deployment.md file as context.
- Prompt Copilot Agent to
generate bicep files and workflows according to the deployment plan - Show generated files:
- GitHub Actions YAML to build & test
- GitHub Actions YAML to deploy including an approval step
- Accept the changes
- Commit and push to see the pipeline execution
- Show the deployment
Quick Start
Clone the repository
git clone https://github.com/ahmedbham/ghca-supply-chainInstall dependencies
cd ghca-supply-chain
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.