Logo Lanfrica

akka-ben/Darija_Translator

Domain:

natural language processing

Record type:

software
Creator:
akk
Host:
# πŸ‡²πŸ‡¦ Darija Translator – English to Moroccan Darija REST API A secure LLM-powered RESTful web service that translates English text into real Moroccan Darija, built with Jakarta EE, JAX-RS, and deployed using Payara Micro. The system is connected to real client applications, including a PHP web client and a Chrome Extension (Manifest V3). This project was developed as a Master-level academic project, with a strong focus on REST architecture, security, reusability, and practical usability. --- ## 🎬 Video Demonstration (Start Here) πŸ‘‰ **Watch the full live demo of the project here:** **This video demonstrates:** - the REST API running on Payara Micro - authentication using Jakarta Security (Basic Auth) - live API tests with Postman - the PHP client in action - the Chrome Extension (side panel, text selection, voice input, and text-to-speech) ⏱️ **Duration:** ~5 minutes 🎯 **Purpose:** Live academic demonstration of the complete system --- ## πŸ“‘ Table of Contents - Features - Architecture - Technologies Used - Project Structure - Quick Start - API Documentation - Client Applications - Security - Testing - Deployment - Extensions & Future Work --- ## ✨ Features ### Core Features - βœ… RESTful API implemented with JAX-RS - βœ… LLM-powered translation (English β†’ Moroccan Darija) - βœ… HTTP Basic Authentication using Jakarta Security - βœ… Payara Micro (Jakarta EE embedded server) - βœ… Health check endpoint - βœ… Environment-based API key configuration ### Client Applications - βœ… PHP Web Client using cURL - βœ… Chrome Extension (Manifest V3) with side panel - βœ… API testing via Postman, SoapUI, and cURL - βœ… Secure and authenticated REST communication ### Advanced Capabilities - βœ… Prompt engineering for high-quality Darija output - βœ… Voice input (Chrome Extension) - βœ… Text-to-Speech output (Chrome Extension) - βœ… Automatic text selection from web pages --- ## πŸ—οΈ Architecture ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Client Layer β”‚ β”œβ”€β”€β”€β”€ …