8000 GitHub - AlahmadiQ8/Kuwait-Copilot-Hackathon · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Kuwait GovDev & OilDev Hackathon Guide

Awesome GitHub Copilot Customizations repo: github/awesome-copilot

  • A community collection of instructions, prompts, and configurations to help you get more consistent Copilot outcomes.

Greenfield Project Prompts

A collection of prompts for developers starting new projects from scratch.

Frontend Prompts

1. Project Setup

Create a new [TECHNOLOGY] frontend project for [PROJECT_IDEA]. Set up the project structure with proper folder organization, including components, styles, assets, and utilities directories.

2. Component Architecture

Design and implement a component architecture for [PROJECT_IDEA] using [TECHNOLOGY]. Create reusable components following best practices and establish a clear component hierarchy.

3. Routing Configuration

Set up routing for a [TECHNOLOGY] application for [PROJECT_IDEA]. Include navigation between pages, route guards, and dynamic routing where needed.

4. State Management

Implement state management for [PROJECT_IDEA] using [TECHNOLOGY] and appropriate state management library. Set up global state, actions, and reducers/mutations.

5. API Integration

Create a service layer in [TECHNOLOGY] to integrate with backend APIs for [PROJECT_IDEA]. Include error handling, loading states, and data transformation logic.

6. Form Handling

Build comprehensive form handling for [PROJECT_IDEA] using [TECHNOLOGY]. Include validation, error messages, and form submission with proper user feedback.

7. Responsive Design

Implement a fully responsive UI for [PROJECT_IDEA] using [TECHNOLOGY]. Ensure the application works seamlessly across desktop, tablet, and mobile devices.

8. Authentication UI

Create authentication flows (login, signup, password reset) for [PROJECT_IDEA] using [TECHNOLOGY]. Include protected routes and session management on the frontend.

9. Performance Optimization

Optimize the [TECHNOLOGY] frontend for [PROJECT_IDEA]. Implement lazy loading, code splitting, image optimization, and other performance best practices.

10. Testing Setup

Set up a comprehensive testing environment for [PROJECT_IDEA] using [TECHNOLOGY]. Include unit tests for components, integration tests, and end-to-end testing configuration.

Backend Prompts

1. Server Setup

Initialize a [TECHNOLOGY] backend server for [PROJECT_IDEA]. Set up the project structure with proper separation of concerns including controllers, services, models, and middleware.

2. Database Design

Design and implement a database schema for [PROJECT_IDEA] using [TECHNOLOGY]. Create tables/collections with proper relationships, indexes, and constraints.

3. RESTful API Structure

Create a RESTful API structure for [PROJECT_IDEA] using [TECHNOLOGY]. Define routes, controllers, and implement CRUD operations following REST principles.

4. Authentication & Authorization

Implement authentication and authorization for [PROJECT_IDEA] using [TECHNOLOGY]. Include user registration, login, JWT/session management, and role-based access control.

5. Middleware Configuration

Set up essential middleware for [PROJECT_IDEA] backend using [TECHNOLOGY]. Include logging, CORS, request validation, error handling, and security middleware.

6. Data Validation

Implement comprehensive input validation and sanitization for [PROJECT_IDEA] using [TECHNOLOGY]. Validate all incoming requests and ensure data integrity.

7. Error Handling

Create a robust error handling system for [PROJECT_IDEA] using [TECHNOLOGY]. Implement custom error classes, error middleware, and consistent error responses.

8. Database Migrations

Set up database migration system for [PROJECT_IDEA] using [TECHNOLOGY]. Create initial migrations and establish a process for schema evolution.

9. Background Jobs

Implement a background job processing system for [PROJECT_IDEA] using [TECHNOLOGY]. Set up task queues for async operations like email sending, data processing, etc.

10. Testing & Documentation

Create comprehensive backend testing and API documentation for [PROJECT_IDEA] using [TECHNOLOGY]. Include unit tests, integration tests, and auto-generated API documentation.

API Prompts

1. API Gateway Setup

Design and implement an API gateway for [PROJECT_IDEA] using [TECHNOLOGY]. Configure routing, rate limiting, and request/response transformation.

2. GraphQL API

Create a GraphQL API for [PROJECT_IDEA] using [TECHNOLOGY]. Define schemas, resolvers, and implement queries and mutations.

3. API Versioning

Implement API versioning strategy for [PROJECT_IDEA] using [TECHNOLOGY]. Set up v1 endpoints and prepare for future versions with proper deprecation handling.

4. Rate Limiting & Throttling

Add rate limiting and throttling to the API for [PROJECT_IDEA] using [TECHNOLOGY]. Protect endpoints from abuse and implement fair usage policies.

5. API Authentication

Implement multiple authentication methods for the API of [PROJECT_IDEA] using [TECHNOLOGY]. Support API keys, OAuth2, and JWT authentication.

6. Request/Response Logging

Set up comprehensive logging for API requests and responses in [PROJECT_IDEA] using [TECHNOLOGY]. Include request tracking, performance monitoring, and audit trails.

7. API Caching

Implement caching strategy for the API of [PROJECT_IDEA] using [TECHNOLOGY]. Set up Redis/in-memory caching for frequently accessed resources.

8. Pagination & Filtering

Create a flexible pagination and filtering system for API endpoints in [PROJECT_IDEA] using [TECHNOLOGY]. Support query parameters for sorting, filtering, and pagination.

9. Webhook Integration

Design and implement webhook support for [PROJECT_IDEA] using [TECHNOLOGY]. Allow external services to subscribe to events and receive real-time notifications.

10. API Monitoring & Analytics

Set up monitoring and analytics for the API of [PROJECT_IDEA] using [TECHNOLOGY]. Track usage metrics, response times, error rates, and generate insights.

Usage Instructions

  • Replace [TECHNOLOGY] with your chosen technology stack (e.g., React, Node.js, Express, Django, etc.)
  • Replace [PROJECT_IDEA] with your specific project concept (e.g., e-commerce platform, task manager, social network, etc.)
  • Use these prompts with your AI coding assistant to generate starter code and implementations
  • Adapt the generated code to your specific requirements and coding standards

Note: These prompts are designed to help you quickly bootstrap greenfield projects. Always review and customize the generated code to match your project's specific needs and best practices.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

0