Skip to content

Repository files navigation

Translated KSA - Frontend

Frontend application for the translation service.

Setup

  1. Install dependencies:
npm install
  1. Create .env.local file:
NEXT_PUBLIC_API_URL=http://localhost:3001/api
  1. Start development server:
npm run dev

The application will run on http://localhost:3000.

Environment Variables

  • NEXT_PUBLIC_API_URL - Backend API URL (default: http://localhost:3001/api)

Project Structure

translated-ksa-frontend/
├── app/
│   ├── page.tsx              # Home page
│   ├── review-order/         # Order review
│   ├── submission-success/   # Success page
│   └── viewer/               # File viewer
├── components/
│   ├── document-upload-form-new.tsx
│   ├── header.tsx
│   ├── footer.tsx
│   └── ui/                   # UI components
├── lib/
│   ├── api-client.ts         # API client
│   └── utils.ts
└── public/                   # Static assets

API Client

All API calls are made through the apiClient in lib/api-client.ts.

Example:

import { api } from '@/lib/api-client'

// Get pricing
const pricing = await api.getPricing()

// Submit request
const result = await api.submitRequest(formData)

About

Bilingual (AR/EN) customer frontend for Translated KSA, a document translation service — upload documents, get instant quotes, review orders, and track requests. Next.js, next-translate, Tailwind CSS.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages