Skip to content

A cross platform mobile app built using React Native that searches through streaming services to find which has the movie the user is looking for.

Notifications You must be signed in to change notification settings

davidhu2000/eezee

Repository files navigation

logo

eZ is an iOS application that provides users with a quick and easy way to search for movies across multiple streaming services. It utilizes a lightweight FireBase back-end, and React Native with a Flux/redux architecture to control the application state on the front-end.

eZ is a collaborative project by Alex Sherman, David Hu, and Tom Ogasawara.

Features

  • Simultaneous query multiple streaming services
  • Search from any page using an integrated search bar
  • Create user accounts with secure authentication
  • Access links to available streaming sites directly from the app

Movie Detail Search Result User authentication

Implementation

The application accepts some input from the user, e.g. "Silence of the Lambs" or "Batman," then interpolates the query into a call to the GuideBox API, which returns a list of related movies. The app then filters the results and displays links to the five most relevant.

queryMovies(query) {
  let url = `https://api-public.guidebox.com/v2/search?api_key=${api}&type=movie&field=title&precision=fuzzy&query=${query}`

  fetch(url)
  .then(
    res => res.json()
  ).then(
    resJson => {
      let movies = resJson.results;

      let titles = [];
      movies = movies.filter( movie => {
        let noteIncluded = titles.indexOf(movie.title) === -1
        titles.push(movie.title)
        return noteIncluded;
      });

      if(movies && movies.length > 5) {
        movies = movies.slice(0, 5);
      }
      this.setState({ fetching: false })
      this.props.receiveAllMovies(movies || []);
    }
  ).catch(
    err => console.log(err)
  );
}

When a user selects one of the displayed options, the application redirects to a page displaying which (if any) streaming services currently host the selected movie/tv show. Each available streaming option displays an icon with link directly to the content.

renderStreamServices() {
  if(this.props.movie.subscription_web_sources && this.props.movie.subscription_web_sources.length > 0) {
    return this.props.movie.subscription_web_sources.map( st => (
        <View style={ styles.service } key={ st.display_name }>
          <TouchableOpacity onPress={ () => Linking.openURL(st.link) }>
            <View style={ styles.icons }>
              <Image source={this.renderIcon(st)} />
            </View>
          </TouchableOpacity>
        </View>
    ));
  } else {
    return (
      <View style={ styles.service }>
        <Text>No Streaming Available</Text>
      </View>
    );
  }
}

The search bar simply updates the query string in the application state, and changes the current scene of the application to the search results scene. The query for the movies will run as setup by the lifecyle methods

  componentWillMount() {
    this.queryMovies(this.props.query);
  }

  componentWillReceiveProps(newProps) {
    if(this.props.query !== newProps.query) {
      this.queryMovies(newProps.query);
    }
  }

Technology

Frontend

Using the Redux implementation of the Flux design pattern, we set up actions, reducers, and a single store to manage data flow and to update the state of the application. We used React Native to render an intuitive mobile UI by creating declarative React components, and styled them using React Native's integrated stylesheet system with pure JavaScript.

We used npm to manage all of the JavaScript packages, and the Babel transpiler to convert ES6 to ES5 and bundle it into a single file.

Backend

We set up a lightweight back-end with secure user authentication using FireBase, and store user data in the cloud to ensure a consistent experience across different devices.

Future Implementation

  • Utilize Electron to create a desktop application.
  • Create the full-stack web application.
  • Add more search functionalities to query other types of data, such as riding sharing services.
  • Add user recommendation based on prior searches and related movies to current search.
  • Setup Facebook Login.

About

A cross platform mobile app built using React Native that searches through streaming services to find which has the movie the user is looking for.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published