Skip to content

datacode-app/tamam-admin-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TAMAM Admin Backend - Laravel API & Dashboard

Laravel PHP Multi-Module Staging Deployment

Overview

The TAMAM Admin Backend is a comprehensive Laravel 10.x application that powers the entire TAMAM delivery and rental ecosystem. It provides a robust REST API for mobile applications and a full-featured admin dashboard for system management.

πŸ—οΈ Architecture

  • Framework: Laravel 10.x with multi-module architecture
  • Database: MySQL with comprehensive migrations and seeders
  • API: RESTful endpoints for mobile apps (Business, Driver, Customer)
  • Admin Panel: Full-featured web dashboard
  • Provider Portal: Service partner management interface

πŸ“¦ Key Modules

Core Delivery System

  • Multi-vendor restaurant management
  • Order processing and tracking
  • Real-time delivery coordination
  • Payment gateway integrations

Rental System Module (Modules/Rental/)

  • Vehicle category and brand management
  • Driver and provider management
  • Trip booking and management
  • Rental cart and wishlist functionality
  • Comprehensive reporting system

πŸš€ Features

Admin Dashboard

  • Restaurant Management: Add, edit, and manage restaurants
  • Menu Management: Category and item management with multilingual support
  • Order Tracking: Real-time order status monitoring
  • User Management: Customer, driver, and provider administration
  • Financial Reports: Comprehensive revenue and transaction reports
  • Settings Management: System configuration and business rules

Provider Portal

  • Business Dashboard: Performance metrics and analytics
  • Vehicle Management: Fleet management for rental providers
  • Trip Management: Booking and scheduling system
  • Driver Assignment: Driver allocation and tracking
  • Financial Reports: Earnings and commission tracking

REST API

  • Authentication: JWT-based user authentication
  • Multi-language: Arabic, English, and Kurdish support
  • Real-time Updates: WebSocket integration for live updates
  • File Management: Image upload and processing
  • Push Notifications: Firebase Cloud Messaging integration

πŸ› οΈ Technical Stack

  • Backend: Laravel 10.x, PHP 8.1+
  • Database: MySQL with Redis caching
  • Queue System: Redis-based job processing
  • File Storage: Local and cloud storage support
  • Email: SMTP and mail queue system
  • Localization: Multi-language support (ar, en, ckb)

πŸ“± Mobile App Integration

This backend serves three Flutter mobile applications:

  • TAMAM Business: Restaurant and business partner app
  • TAMAM Driver: Delivery driver application
  • TAMAM Shop: Customer shopping application

πŸ”§ Installation & Setup

# Install dependencies
composer install
npm install

# Environment setup
cp .env.example .env
php artisan key:generate

# Database setup
php artisan migrate
php artisan db:seed

# Build assets
npm run build

# Start development server
php artisan serve

πŸ—‚οΈ Project Structure

Admin-with-Rental/
β”œβ”€β”€ app/                    # Core application code
β”œβ”€β”€ config/                 # Configuration files
β”œβ”€β”€ database/              # Migrations, seeders, factories
β”œβ”€β”€ Modules/               # Modular architecture
β”‚   └── Modules/Rental/    # Rental system module
β”œβ”€β”€ public/                # Web server document root
β”œβ”€β”€ resources/             # Views, assets, lang files
β”œβ”€β”€ routes/                # Route definitions
└── scripts/git/           # Multi-user git workflow

πŸš€ Automated Deployment

Staging Server

Deployment Process

  1. Automated: Push to main β†’ GitHub Actions β†’ Deploy to staging
  2. Manual: Run ./deploy-to-staging.sh for immediate deployment
  3. Testing: Automated route testing after deployment

Setup Instructions

See .github/DEPLOYMENT_SETUP.md for GitHub secrets configuration.

πŸ” Security Features

  • Input Validation: Comprehensive request validation
  • CSRF Protection: Cross-site request forgery protection
  • Rate Limiting: API rate limiting and throttling
  • SQL Injection Prevention: Eloquent ORM protection
  • XSS Protection: Output sanitization
  • Authentication: Multi-layer authentication system

πŸ“Š Reporting & Analytics

  • Sales Reports: Revenue tracking and analysis
  • User Analytics: Customer behavior insights
  • Performance Metrics: System performance monitoring
  • Financial Reports: Commission and payment tracking

🌍 Internationalization

Full support for:

  • Arabic (ar): Complete RTL support
  • English (en): Default language
  • Kurdish Sorani (ckb): Native Kurdish support

🀝 Development Team

πŸ”„ Git Workflow

This repository uses an intelligent multi-user git workflow:

# Use smart commit system
./scripts/git/smart-commit.sh

# Automatically handles:
# - User attribution based on file changes
# - AI-generated commit messages
# - Conventional commit format

πŸ“‹ API Documentation

The API serves multiple client applications with comprehensive endpoints for:

  • User authentication and management
  • Restaurant and menu operations
  • Order processing and tracking
  • Payment and transaction handling
  • Real-time notifications and updates

🎯 Production Deployment

  • Environment: Production-ready Laravel configuration
  • Caching: Redis-based caching strategy
  • Queue Processing: Background job handling
  • Monitoring: Error tracking and performance monitoring
  • Backup: Automated database and file backups

πŸ“ž Support

For technical support and development questions:

  • Backend issues: Contact Datacode-backend team
  • General Contact: info@datacode.app
  • API integration: Refer to API documentation
  • Multi-user workflow: Use provided git scripts

TAMAM Admin Backend - Powering the complete delivery and rental ecosystem for Kurdistan and Iraq.

Developed by Datacode

About

TAMAM Multi-vendor Delivery Platform - Laravel Backend & Admin Panel with Rental Module

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages