Giter VIP home page Giter VIP logo

movie-fetcher's Introduction

Movie Fetcher

Simple movie fetcher app via flutter.

Features

Authenticate

First of all user should sign in to the app and get the authorization token & save it to database.

If user is authenticated, we proceed to home page, otherwise show the sign in page.

Note: Only username & password should be change in Sign in API, the others is static.

Note: Only user that has valid in databse is:

Username: [email protected]

Password: HX2#k6^uZtHhJ7z

Fetch movie

we have a search bar in top of the page with Search here message.

If user type something & click the Search button, the app fetch movie data from server.

If user scroll down and reach to bottom page, fetch other movie list (we call Pagination).

If server get error or something has wrong, show the propper message.

Note: The search text should has s key & page number of items has page key in query of fetch movie API.

Movie item

The movie items component should contain poster, name & year like the above:

Movie Item

Note: The movie API key is static and no need to change.

User Info

we have another page beside of fetch movie that we call User Info page.

In this page, show authentication info such as access token, name, nickname & sub id.

There is no need to show them as UI component, it's enough to show it as text.

Note: Token type is Bearer mode, so you should set Bearer YOUR_ACCESS_TOKEN to the user info API.

Note: There should be Sign out button to back to Sign in page.

Sign out expireation

Access token has 24h expiration time, and if it uses to user info API, it gets error.

so we should sign out user automatically after 24h and redirect him to Sign in page.

APIs

You can access APIs in a Postman collection by this link

movie-fetcher's People

Contributors

arefhosseini avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.