This is the frontend React application for the Korean-English Translator, built with React, TypeScript, and Tailwind CSS.
- Clone the Repository
git clone https://github.com/yourusername/korean-english-translator.git
cd korean-english-translator/korean-english-translator-client- Install Dependencies
npm install- Configure Environment Variables
- Create a
.envfile in the root directory - Add the following environment variable:
VITE_API_URL=http://localhost:8000
- Run the Development Server
npm run devThe frontend will be available at http://localhost:5173
src/
├── App.tsx # Main application component
├── Translator.tsx # Translation component
├── KoreanBreakdown.tsx # Korean phrase analysis component
└── components/ # Reusable components
- Real-time Korean-English translation
- Korean phrase analysis with cultural context
- Formality level detection
- Pronunciation guides
- Modern UI with Tailwind CSS
- TypeScript for type safety
- Hot module replacement for development
npm run dev- Starts the development servernpm run build- Builds the production versionnpm run preview- Preview the production build locally
- React 18
- TypeScript
- Tailwind CSS
- Vite
- Axios for API calls
- React Router for navigation