# π 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