A modern web application for converting Word documents to XDP format with data integration capabilities.
- Word Document Upload: Accepts .docx files
- Data Upload: Accepts Excel files (.xlsx, .xls)
- XDP Generation: Converts Word documents to XDP format via API
- Modern UI: Beautiful, responsive design with gradient backgrounds
- Real-time Feedback: Shows upload status, loading states, and results
- Node.js (version 16 or higher)
- npm or yarn
- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:3000
The application will automatically open in your default browser.
To create a production build:
npm run buildTo preview the production build:
npm run preview- Upload Word Document: Click on the "Upload Word Document" area and select a .docx file
- Upload Data (Optional): Click on the "Upload Data" area and select an Excel file
- Generate XDP: Click the "Generate XDP" button to convert your Word document
- View Results: The API response will be displayed in the result section
The application makes a POST request to:
https://e1bc-103-43-112-97.ngrok-free.app/wordToXdp
The request includes the uploaded Word document as form data with the field name wordDoc.
- React 18: Modern React with hooks
- Vite: Fast build tool and development server
- Axios: HTTP client for API requests
- CSS3: Modern styling with gradients and animations
src/
├── App.jsx # Main application component
├── App.css # Application styles
├── main.jsx # React entry point
└── index.css # Global styles
The application works on all modern browsers that support:
- ES6+ JavaScript
- CSS Grid and Flexbox
- CSS Custom Properties
- Fetch API
This project is open source and available under the MIT License.