Repository navigation
Development Setup
This page describes the development environment used for the MySQL JSON Duality Views Quality Inspection project.
The goal was to create a practical development workflow that supports:
- Database development
- API development
- Web application development
- AI feature integration
- Automated testing
Developer
|
v
Web Client
|
v
REST API
|
v
JSON Duality Views
|
v
MySQL Database
Optional AI capabilities:
Inspection Document
|
v
AI Boundary
|
v
AI Service
The database serves as the system of record.
Responsibilities include:
- Relational storage
- Data integrity
- Constraints
- Transactions
- JSON Duality Views
The API provides application services.
Responsibilities include:
- Request processing
- Validation
- Business rules
- Concurrency control
- AI integration
The browser-based interface provides access to:
- Inspection cards
- Measurements
- Checklists
- Findings
- Attachments
- AI capabilities
Typical project areas include:
database/
api/
web/
docs/
Additional directories may exist as the solution evolves.
A typical workflow follows:
Create Feature
|
v
Implement Change
|
v
Run Tests
|
v
Verify Functionality
|
v
Commit Changes
Database changes should be:
- Script-based
- Version-controlled
- Repeatable
- Documented
Examples include:
- Tables
- Views
- JSON Duality Views
- Roles
- Permissions
Benefits:
- Easier deployment
- Reproducible environments
- Improved maintainability
API development focuses on:
- Business-oriented endpoints
- JSON document processing
- Validation
- Error handling
- AI integration
Key principles:
- Keep endpoints simple
- Avoid unnecessary transformations
- Preserve document consistency
The Web Client communicates through REST APIs only.
Benefits:
- Clear separation of concerns
- Independent UI evolution
- Reusable backend services
- Easier future integrations
Source code is maintained using Git.
Recommended practices:
Create focused commits for individual changes.
Use commit messages that clearly describe the change.
Update documentation when functionality changes.
Maintain a clear history of design decisions and enhancements.
Configuration should remain external to source code.
Examples include:
- Database connections
- API settings
- Secrets
- Credentials
- AI configuration
Recommended principles:
- Use environment variables
- Do not commit secrets
- Use least privilege access
The project follows several AI design rules.
AI features operate on approved business documents.
The AI receives curated inspection information.
The AI does not generate or execute unrestricted SQL.
Generated insights support decision-making but do not replace human judgment.
Before committing changes:
Confirm database objects compile and behave as expected.
Test endpoints and business rules.
Validate user workflows and screen behavior.
Confirm AI responses use approved data sources.
The development process was designed to support:
- Maintainability
- Simplicity
- Repeatability
- Security
- AI readiness
- Practical business application development