Skip to content

nexusct/ict-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ICT Platform - Complete Operations Management System

Version WordPress React Native PHP License

A comprehensive operations management platform for ICT/electrical contracting businesses with WordPress plugin and React Native mobile app. Integrates with Zoho's suite of services (CRM, FSM, Books, People, Desk) for complete business management.

๐Ÿ“ฆ Repository Structure

ZOHOQW/
โ”œโ”€โ”€ wp-ict-platform/          # WordPress Plugin
โ”‚   โ”œโ”€โ”€ admin/                # Admin area functionality
โ”‚   โ”œโ”€โ”€ api/                  # REST API controllers
โ”‚   โ”œโ”€โ”€ includes/             # Core classes & integrations
โ”‚   โ”œโ”€โ”€ public/               # Public-facing functionality
โ”‚   โ””โ”€โ”€ src/                  # React/TypeScript frontend
โ”‚
โ”œโ”€โ”€ ict-mobile-app/           # React Native Mobile App
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ screens/          # 18 screen components
โ”‚   โ”‚   โ”œโ”€โ”€ navigation/       # React Navigation setup
โ”‚   โ”‚   โ”œโ”€โ”€ services/         # API & location services
โ”‚   โ”‚   โ”œโ”€โ”€ store/            # Redux Toolkit state
โ”‚   โ”‚   โ””โ”€โ”€ types/            # TypeScript definitions
โ”‚   โ””โ”€โ”€ App.tsx               # Root component
โ”‚
โ””โ”€โ”€ docs/                     # Documentation

๐Ÿš€ Features

WordPress Plugin

Core Modules (Phases 1-7 Complete)

  • โœ… Project Management - Complete project lifecycle tracking
  • โœ… Time Tracking - Clock in/out with GPS, approval workflows
  • โœ… Resource Management - Technician allocation, skills matrix, calendar
  • โœ… Inventory Management - Stock tracking, reorder alerts
  • โœ… Procurement - Purchase order workflow with approval
  • โœ… Reports & Analytics - Custom dashboards with charts
  • โœ… Zoho Integration - Bidirectional sync with CRM, FSM, Books, People, Desk

REST API Endpoints

/ict/v1/auth/*              - JWT authentication
/ict/v1/projects/*          - Project & task management
/ict/v1/time/*              - Time tracking & clock operations
/ict/v1/location/*          - GPS tracking & history
/ict/v1/expenses/*          - Expense submission & receipts
/ict/v1/schedule/*          - Events & calendar
/ict/v1/inventory/*         - Stock management
/ict/v1/purchase-orders/*   - PO workflow
/ict/v1/resources/*         - Resource allocation
/ict/v1/reports/*           - Analytics & reports

Mobile App (React Native)

Key Features

  • ๐Ÿ” Authentication - JWT with auto-refresh
  • โฑ๏ธ Time Tracking - Live timer, clock in/out with GPS
  • ๐Ÿ“ Background GPS - Tracks location every 5 minutes while clocked in
  • ๐Ÿ”” Smart Reminders - Auto-prompts task change when >0.5 miles away for >30 min
  • ๐Ÿ“Š Projects & Tasks - View and update project information
  • ๐Ÿ’ฐ Expenses - Submit expenses with receipt photos
  • ๐Ÿ“ File Management - Upload to Zoho WorkDrive
  • ๐Ÿ“… Schedule - View events and assignments
  • ๐Ÿ”” Push Notifications - Task reminders and alerts

Screens (18 Total)

  • Auth: Login, Forgot Password
  • Dashboard: Home with quick stats
  • Time: Clock, Entries List, Entry Detail
  • Projects: List, Project Detail, Task Detail
  • Schedule: Calendar view
  • More: Expenses, Files, Notifications, Settings, Profile

๐Ÿ› ๏ธ Technology Stack

WordPress Plugin

  • Backend: PHP 8.1+, WordPress 6.4+
  • Frontend: React 18.2, TypeScript 5.2, Redux Toolkit
  • Build: Webpack 5, Babel
  • Database: MySQL 5.7+ with 10 custom tables
  • Testing: PHPUnit, Jest, React Testing Library
  • APIs: WordPress REST API + Custom endpoints
  • Background Jobs: WordPress Action Scheduler

Mobile App

  • Framework: React Native 0.72.6
  • Language: TypeScript 5.2
  • State: Redux Toolkit
  • Navigation: React Navigation v6
  • Location: react-native-background-geolocation
  • Camera: react-native-vision-camera
  • Notifications: @notifee/react-native
  • API: Axios with interceptors

Integrations

  • Zoho CRM - Customer & deal management
  • Zoho FSM - Field service management
  • Zoho Books - Accounting & invoicing
  • Zoho People - HR & time tracking
  • Zoho Desk - Support tickets
  • Zoho WorkDrive - File storage
  • Microsoft Teams - Group messaging (ready)

๐Ÿ“ฅ Installation

Prerequisites

  • PHP 8.1+ and Composer
  • Node.js 18+ and npm
  • WordPress 6.4+
  • MySQL 5.7+
  • React Native development environment (for mobile app)

WordPress Plugin

cd wp-ict-platform

# Install PHP dependencies
composer install

# Install Node dependencies
npm install

# Build production assets
npm run build

Activate the plugin in WordPress:

  1. Copy wp-ict-platform to wp-content/plugins/
  2. Activate in WordPress admin
  3. Navigate to ICT Platform โ†’ Settings
  4. Configure Zoho credentials

Mobile App

cd ict-mobile-app

# Install dependencies
npm install

# iOS only - install pods
cd ios && pod install && cd ..

# Run on iOS
npm run ios

# Run on Android
npm run android

Configure environment: Create .env file:

API_BASE_URL=https://yoursite.com/wp-json/ict/v1
WP_BASE_URL=https://yoursite.com/wp-json/wp/v2

๐Ÿ“Š Database Schema

Custom Tables (10 total)

  • wp_ict_projects - Project data synced with Zoho CRM
  • wp_ict_time_entries - Time tracking with GPS
  • wp_ict_inventory_items - Stock management
  • wp_ict_purchase_orders - PO workflow
  • wp_ict_project_resources - Resource allocation
  • wp_ict_sync_queue - Pending Zoho sync operations
  • wp_ict_sync_log - Sync history & debugging
  • wp_ict_location_tracking - GPS coordinate history
  • wp_ict_expenses - Expense submissions
  • wp_ict_tasks - Task management

๐Ÿ”ง Configuration

Zoho OAuth Setup

  1. Create app at https://api-console.zoho.com/
  2. Set redirect URI: https://yoursite.com/wp-admin/
  3. Add scopes for each service (CRM, FSM, Books, People, Desk)
  4. Enter credentials in plugin settings

Mobile App Permissions

iOS (Info.plist):

  • NSLocationAlwaysAndWhenInUseUsageDescription
  • NSCameraUsageDescription
  • NSPhotoLibraryUsageDescription

Android (AndroidManifest.xml):

  • ACCESS_FINE_LOCATION
  • ACCESS_BACKGROUND_LOCATION
  • CAMERA
  • READ_EXTERNAL_STORAGE

๐Ÿš€ Deployment

WordPress Plugin

# Create production build
npm run build

# Create plugin zip
zip -r ict-platform.zip wp-ict-platform/ \
  -x "*/node_modules/*" "*/src/*" "*/tests/*" "*/.git/*"

Mobile App

# iOS
cd ios
xcodebuild -workspace ICTMobileApp.xcworkspace \
  -scheme ICTMobileApp -configuration Release

# Android
cd android
./gradlew assembleRelease

๐Ÿ“– Documentation

User Guides

Launch & Operations

API Health Check

Test system health and integrations:

curl -X GET "https://yoursite.com/wp-json/ict/v1/health" \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN"

Test complete sync workflows:

curl -X POST "https://yoursite.com/wp-json/ict/v1/health/test-sync" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"workflow": "full_workflow", "entity_id": 123}'

๐Ÿงช Testing

WordPress Plugin

# PHP tests
composer test

# JavaScript tests
npm test
npm run test:coverage

# Code quality
composer phpcs
npm run lint

Mobile App

# Run tests
npm test

# Type checking
npm run type-check

# Linting
npm run lint

๐Ÿ“ˆ Project Status

๐ŸŽ‰ PRODUCTION READY - All Systems Go!

WordPress Plugin

  • Phase 1-3: โœ… 100% Complete (Foundation, Zoho, Projects)
  • Phase 4: โœ… 100% Complete (Time Tracking)
  • Phase 5: โœ… 100% Complete (Resource Management)
  • Phase 6: โœ… 100% Complete (Inventory & Procurement)
  • Phase 7: โœ… 100% Complete (Reports & Analytics)
  • Integration Layer: โœ… 100% Complete (QuoteWerks + 5 Zoho Services)

Mobile App

  • Core Features: โœ… 100% Complete
  • Screens: โœ… 18/18 Implemented
  • REST API Integration: โœ… Complete
  • Background Services: โœ… Complete
  • GPS Tracking: โœ… 5-minute intervals with smart reminders
  • Microsoft Teams: โณ Ready for integration

Integrations

  • QuoteWerks: โœ… Bidirectional sync with webhooks
  • Zoho CRM: โœ… Deals โ†” Projects
  • Zoho FSM: โœ… Work Orders โ†” Projects
  • Zoho Books: โœ… Inventory & Purchase Orders
  • Zoho People: โœ… Time tracking sync
  • Zoho Desk: โœ… Support tickets
  • Zoho WorkDrive: โœ… File storage & uploads

Launch Readiness

  • Health Monitoring: โœ… Complete API health check endpoint
  • Sync Orchestration: โœ… Full workflow testing available
  • Documentation: โœ… Deployment checklist, troubleshooting guide, launch guide
  • Error Handling: โœ… Retry logic, rate limiting, comprehensive logging
  • Security: โœ… OAuth 2.0, JWT tokens, encrypted credentials, webhook signature verification

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

See CONTRIBUTING.md for detailed guidelines.

๐Ÿ“ License

This project is licensed under the GPL v2 or later - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • WordPress Community
  • React Native Community
  • Zoho Developer Platform
  • All contributors and testers

๐Ÿ“ž Support


๐Ÿ”ฎ Roadmap

Future Enhancements

  • Microsoft Teams full integration
  • Offline mode with data sync
  • Advanced reporting with exports
  • Mobile biometric authentication
  • Multi-language support
  • Advanced role management
  • Custom field builder
  • Email notifications
  • SMS notifications
  • WhatsApp integration

Built with โค๏ธ for ICT/electrical contractors

๐Ÿค– Generated with Claude Code

About

Complete operations management platform for ICT/electrical contractors with WordPress plugin, React Native mobile app, and Zoho integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors