Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/co-pilot-instruction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Project general coding guidelines

## Code Style
- Use semantic HTML5 elements (header, main, section, article, etc.)
- Prefer modern JavaScript (ES6+) features like const/let, arrow functions, and template literals

## Naming Conventions
- Use PascalCase for component names, interfaces, and type aliases
- Use camelCase for variables, functions, and methods
- Prefix private class members with underscore (_)
- Use ALL_CAPS for constants

## Code Quality
- Use meaningful variable and function names that clearly describe their purpose
- Include helpful comments for complex logic
- Add error handling for user inputs and API calls
185 changes: 92 additions & 93 deletions .github/workflows/api-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< HEAD
name: API Tests and Validation

on:
Expand All @@ -9,60 +8,60 @@

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Validate OpenAPI specifications
run: npm run validate:openapi

- name: Run tests
run: npm test

- name: Generate coverage report
run: npm run test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella

validate-specs:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Validate all OpenAPI specifications
run: npm run validate:openapi

generate-sdks:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-latest

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
needs: [test, validate-specs]

steps:
Expand All @@ -89,95 +88,95 @@
name: generated-sdks
path: sdks/
retention-days: 30
=======
name: API Tests and Validation

on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Validate OpenAPI specifications
run: npm run validate:openapi

- name: Run tests
run: npm test

- name: Generate coverage report
run: npm run test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella

validate-specs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Validate all OpenAPI specifications
run: npm run validate:openapi

generate-sdks:
runs-on: ubuntu-latest
needs: [test, validate-specs]

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Generate TypeScript SDK
run: npm run generate:sdk:typescript

- name: Generate Python SDK
run: npm run generate:sdk:python

- name: Upload SDK artifacts
uses: actions/upload-artifact@v3
with:
name: generated-sdks
path: sdks/
retention-days: 30
>>>>>>> e961430... Add Node.js API automated tests and SDK generation capabilities
=======
name: API Tests and Validation
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Validate OpenAPI specifications
run: npm run validate:openapi
- name: Run tests
run: npm test
- name: Generate coverage report
run: npm run test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella
validate-specs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Validate all OpenAPI specifications
run: npm run validate:openapi
generate-sdks:
runs-on: ubuntu-latest
needs: [test, validate-specs]
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate TypeScript SDK
run: npm run generate:sdk:typescript
- name: Generate Python SDK
run: npm run generate:sdk:python
- name: Upload SDK artifacts
uses: actions/upload-artifact@v3
with:
name: generated-sdks
path: sdks/
retention-days: 30
>>>>>>> e961430... Add Node.js API automated tests and SDK generation capabilities
4 changes: 4 additions & 0 deletions .github/workflows/major-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: '0 10 1 * *' # 1st of month at 10 AM
workflow_dispatch:

permissions:
contents: read
issues: write

jobs:
check-major:
runs-on: ubuntu-latest
Expand Down
44 changes: 44 additions & 0 deletions MONOREPO_MAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# MBTQ.dev Monorepo Map

This repository contains multiple subsystems. Each subsystem is isolated by boundaries.

## 1. Backend Services (Python)
- app/ (Flask)
- fastapi_backend/
- magician_api/
- database/

## 2. Frontend / Static
- static/
- templates/
- docs/
- GitHub Pages demo

## 3. AI / Quantum
- magician_api/ai
- magician_api/quantum
- app/core/quantum

## 4. Integrations
- app/integrations/
- fastapi_backend/api/v1/integration_endpoints.py

## 5. Infrastructure
- deployment/docker/
- deployment/kubernetes/
- deployment/terraform/
- deployment/ansible/

## 6. Tests
- tests/unit
- tests/integration
- tests/e2e
- tests/accessibility
- tests/performance

## 7. Scripts
- scripts/setup
- scripts/deployment
- scripts/data
- scripts/maintenance
- scripts/monitoring
Loading
Loading