Logo Lanfrica

saharkh12/darija-translator

Domain:

natural language processing

Record type:

software
Creator:
sah
Host:
# 🌍 Darija Translator A full-stack LLM-powered RESTful Web Service that translates text to Moroccan Arabic Dialect (Darija). ## πŸ“‹ Project Overview This project implements a translation service using the Groq LLM API (Llama 3.3) and exposes it as a Jakarta EE RESTful Web Service deployed on WildFly. ## πŸ—οΈ Architecture - **Backend**: Java REST Service (Jakarta EE / JAX-RS) deployed on WildFly - **LLM**: Groq API with Llama 3.3-70b model - **Authentication**: Basic Authentication (Jakarta Security) - **Clients**: Chrome Extension, PHP Client, Python Client, React Native Mobile App ## πŸ“ Project Structure darija-translator/ β”œβ”€β”€ src/ # Java REST Service (Maven) β”œβ”€β”€ ChromeExtension/ # Chrome Extension (Manifest V3) β”œβ”€β”€ PHPClient/ # PHP Client β”œβ”€β”€ PythonClient/ # Python Client └── ReactNativeApp/ # React Native Mobile App ## πŸš€ Getting Started ### Prerequisites - JDK 21 - WildFly 39 - Maven - Node.js (for React Native) - PHP/XAMPP (for PHP client) - Python 3 (for Python client) ### Running the REST Service 1. Clone the repository 2. Open in IntelliJ IDEA 3. Configure WildFly server 4. Run the project ### API Endpoint POST localhost Content-Type: text/plain Authorization: Basic (username: translator, password: Translator123!) Body: Text to translate ## πŸ‘©β€πŸ’» Author Sahar Kharmaz - Al Akhawayn University