Skip to content
Movie searching using a Unidirectional State Flow pattern
Kotlin
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app fix using a single disposable Feb 28, 2019
gradle/wrapper chore: upgrade gradle to 5.2.1 Mar 28, 2019
.gitignore feat: first commit Sep 21, 2018
LICENSE feat: first commit Sep 21, 2018
README.md fix: add slide deck to readme Sep 28, 2018
build.gradle test: hook VM and screen load Sep 23, 2018
demo.mp4 feat: upload demo video from readme Sep 22, 2018
dependencies.gradle Picasso is simpler + add movie data in tag Feb 22, 2019
gradle.properties cleanup mvi + androix migration Feb 21, 2019
gradlew feat: first commit Sep 21, 2018
gradlew.bat
settings.gradle

README.md

Movie search using a unidirectional state flow pattern

This is an attempt at coming up with a unidirectional state flow pattern that uses the concepts of patterns like Redux, Cycle.js, MVI etc.

Many of my contemporaries have already done amazing work in this area and I've drawn a lot of lessons and learnings from their work already:

I wanted to achieve the benefits of this pattern without necessarily introducing any new libraries (aside from Rx). How would one familiar with an MVVM model today step to a world where all data flows in a single direction? I hope to demo those concepts with this app.

The app in itself is a simple movie searching app. Clicking the movie result populates a history list. While this is not an extremely complex app, it isn't a silly Hello World one either, so the hope is that it'll cover regular use cases for a basic application.

I've also started meaninful test cases in the repo.

Setting up your OMDB API KEY

We use the wonderful OMDB api to fetch movie information.

There are quotas on this api, so please don't use mine :)

  1. Get an api key for OMDB here
  2. Run this in a terminal like application
touch $HOME/.gradle/gradle.properties
echo "omdb_apikey=\"<API_KEY_GOES_HERE>\"" >> $HOME/.gradle/gradle.properties

You can read this post for instructions on this private api setting up process.

For great movie recommendations, ping me @kaushikgopal (seriously, I watch a lot of movies).

I gave a talk at MBLT}Dev 2018 on how I went about building this app. Slides can be found here.

You can’t perform that action at this time.