This repository demonstrates how to use GitHub Copilot for frontend integration development with the FieldTwin API. It provides a Svelte 5 frontend template designed to be embedded as an iframe in FieldTwin applications, along with comprehensive Copilot instructions and example PRDs.
This template serves as a demonstration of:
# Clone the repository
git clone <repository-url>
cd futureon-integration-copilot-frontend-template
# Install dependencies
npm install
# The .env file is automatically created with the default API URL
# You can modify it if needed for your environment
cat .env
# Start development server
npm run dev
# Development server (with hot reload)
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
āāā .github/
ā āāā copilot-instructions.md # GitHub Copilot configuration
āāā prd/
ā āāā metadata-compare-integration.md # Example PRD for Copilot
āāā src/
ā āāā actions/
ā ā āāā IntegrationService.js # FieldTwin API service
ā āāā components/
ā ā āāā ConnectionList.svelte # Example component
ā āāā App.svelte # Main application
ā āāā main.js # Application entry point
āāā package.json
The repository includes comprehensive Copilot instructions in .github/copilot-instructions.md
that guide code generation for:
The prd/metadata-compare-integration.md
file demonstrates how to write effective Product Requirements Documents that Copilot can use to generate appropriate code. It focuses on user requirements rather than technical implementation details.
This template is designed to be embedded as an iframe in FieldTwin applications:
The .env
file contains the FieldTwin API base URL:
VITE_FIELDAP_API_BASE_URL=http://futureon-backend.lvh.me
You can modify it in the .env
file if you need to point to a different FieldTwin API endpoint.
.github/copilot-instructions.md
to understand the coding conventionsprd/metadata-compare-integration.md
to see how to write requirementsThe current implementation shows:
This template is designed for demonstration and learning purposes. Feel free to:
This project is provided as a template for educational and demonstration purposes.