example.mp4
- About
- Features
- Technologies Used
- Getting Started
- Watchmode token
- Architecture
- Navigation
- API Consumption
This Android app demonstrates the use of Jetpack Compose, best practices for navigation between screens, and consumption of the Watchmode API. It is written in Kotlin (<3)
Made for study purposes
- Displays a list of popular movies using data fetched from the Watchmode API.
- Allows users to click on a movie poster to view details about the movie.
- Implements proper navigation between screens using the Navigation component.
- Jetpack Compose: A modern toolkit for building native Android UI.
- Navigation component: Provides a framework for navigating between composables.
- Watchmode API: Provides data about movies and TV shows.
- Clone the repository.
- Open the project in Android Studio.
- Build and run the app on an Android device or emulator.
It's necessary to create your own personal token on Watchmode API:
- Go to the Watchmode API website: https://api.watchmode. com/
- Click on the "Sign Up" button.
- Enter your email address and create a password.
- Click on the "Create Account" button.
- Once your account is created, you will be redirected to the dashboard, where you be able to create the Token.
- Use your personal token to replace in the file br.com.cesarsicas.watchmode.data.api.Repository
The app follows the Model-View-ViewModel (MVVM) architectural pattern.
The app uses the Navigation component to navigate between screens. The NavHost
composable is used to define the navigation graph. The MainViewModel
class provides the navigation actions that are used to navigate between screens.
The app uses the watchModeApi
object to fetch data from the Watchmode API. The MovieRepository
class uses the watchModeApi
object to make network requests and retrieve movie data.