RempahRasa is an Android application designed to classify spices using images captured from the camera or selected from the gallery. The app also features user authentication, history tracking, and a favorites system for spices.
- Spice Classification: Classify spices by capturing images using the camera or selecting from the gallery.
- User Authentication: Secure login and registration system.
- History Tracking: View the history of previously classified spices.
- Favorites: Mark spices as favorites and view them in a dedicated section.
For detailed API documentation, please refer to RempahRasa API Documentation. *Please contact us for the BaseURL.
- Android Studio
- Android device or emulator running API level 24 or higher
- Clone the repository:
git clone https://github.com/yourusername/rempahrasa.git
- Open the project in Android Studio.
- Add the BaseURL*
- Build the project:
- Let Android Studio download and install the required dependencies.
- Run the project:
- Connect your Android device or start an emulator.
- Click on the "Run" button in Android Studio.
- Register an account: Open the app and register a new account.
- Login: Use your registered credentials to log in.
- Classify Spice:
- Use the camera button to capture an image of a spice.
- Or use the gallery button to select an image from your device.
- View History: Navigate to the history tab to view previously classified spices.
- Manage Favorites: Mark spices as favorites and view them in the favorites tab.
MainActivity.kt
: Handles navigation and permissions.ScanFragment.kt
: Manages spice classification through camera and gallery.HistoryFragment.kt
: Displays the history of classified spices.FavoritesFragment.kt
: Displays user's favorite spices.LoginActivity.kt
: Manages user login.RegisterActivity.kt
: Manages user registration.ApiService.kt
: Defines API endpoints.RetrofitInstance.kt
: Configures Retrofit for API calls.