Skip to content

Commit 3b250b3

Browse files
update docs
1 parent e6f1998 commit 3b250b3

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

readme.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ It helps boost productivity for anyone who writes repetitive messages, needs qui
3333

3434
- **Frontend (Extension):** Browser Manifest V3, JavaScript, HTML, CSS
3535
- **Frontend (Web):** React, Zustand for state management, Framer Motion for animations, Lucide React for icons, Tailwind CSS for styling
36+
- **Frontend (Mobile):** Flutter with Provider for state management, Google Fonts for typography
3637
- **Backend:** Node.js + Express
3738
- **AI Integration:** OpenRouter API
3839

@@ -149,10 +150,28 @@ cd smart-reply
149150

150151
---
151152

152-
### 5 Connect Backend
153+
### 5 Set Up the Flutter Mobile App
154+
155+
1. Prerequisites:
156+
- Flutter SDK installed
157+
- Android Studio / Android SDK configured
158+
159+
2. Configure API Endpoint:
160+
- For Android Emulators: The app is pre-configured to use `http://10.0.2.2:5006/api`
161+
- For Physical Devices: Update `baseUrl` in `lib/utils/constants.dart` to your computer's local IP (e.g., `http://192.168.1.X:5006/api`)
162+
163+
3. Run the app:
164+
```bash
165+
cd smart_reply_app
166+
flutter pub get
167+
flutter run
168+
```
169+
170+
### 6 Connect Backend
153171

154172
- **For Extension**: Click on the extension icon → **Settings**. Paste your backend base URL (e.g., `http://localhost:5006/api`). Set default source/target languages for quick translations. Save.
155173
- **For Web**: The `.env` handles the connection automatically.
174+
- **For Mobile**: Update the API endpoint in `lib/utils/constants.dart` as described in Step 5 above.
156175

157176
> Note: The tools automatically append `/suggest-reply`, `/enhance-text`, or `/translate-text` based on the selected mode.
158177

0 commit comments

Comments
 (0)