This is a frontend application for an AI email client.
- Node.js (recommended LTS version)
-
Clone the repository
Open the terminal and navigate to the directory where you want to clone the repository, then run:
git clone https://github.com/ai-email-client/frontend.git -
Install the required packages
follow the instructions in the
frontenddirectory and run:npm install
-
Set up the environment variables
If you host the backend on your local computer, you don't need to set up the environment variables
- VITE_API_URL: The URL of the backend API (Default: http://localhost:8000)
-
Run the application and build it
In local development:
npm run dev
In production:
npm run build
after build, you will receive a
releasefolder, so you install it on other computer
แอปพลิเคชันฝั่ง Frontend สำหรับ AI Email Client
- Node.js (แนะนำเวอร์ชัน LTS)
-
โคลนรีโพซิทอรี
เปิด Terminal แล้วไปยังโฟลเดอร์ที่ต้องการโคลน จากนั้นรันคำสั่ง:
git clone https://github.com/ai-email-client/frontend.git -
ติดตั้งแพ็กเกจที่จำเป็น
ทำตามคำแนะนำในโฟลเดอร์
frontendแล้วรันคำสั่ง:npm install
-
ตั้งค่าตัวแปรสภาพแวดล้อม (Environment Variables)
หากคุณโฮสต์ Backend เอง บนคอมพิวเตอร์ของคุณเอง ไม่จำเป็นต้องตั้งค่าตัวแปร
VITE_API_URL: URL ของ Backend API (ค่าเริ่มต้น: http://localhost:8000)
-
รันแอปพลิเคชันและบิลด์
สำหรับการพัฒนาในเครื่อง (Local):
npm run dev
สำหรับโปรดักชัน:
npm run build
หลังจากบิลด์เสร็จ จะได้โฟลเดอร์
releaseสำหรับนำไปติดตั้งบนเครื่องอื่นได้