Coder Social home page Coder Social logo

eden-assessment-'s Introduction

Realtime Order Application

App Logo

Overview

The Realtime Order Application is a Flutter-based mobile app that allows users to experience a real-time order tracking system. The app leverages Ably for real-time communication, Firebase for authentication, and Riverpod for state management and dependency injection.

How it works

The project is focused on simulating realtime updates. Since there is no active backend service or action to trigger the state of orders, I hard coded the flow by creating a timer to simulate the process of an action triggered by a backend service. Ably is used just to maintain the realtime functionality of the app. When the OrderService has been initialized, listeners will be created, and a method that updates the state of the order with new values every 10 seconds, and whenever the order state has been completed, the timer gets cancelled. The callback listener from the timer that updates the state of the rorder will only be triggered when there is an active network connection, so as to avoid inconsistency with the status. To view the realtime updates, restart the application, and click on the first order item from the homepage, it should take you to the OrderDetails page where you can view realtime updates of the order, and you can also click Track Order to view the complete order status in realtime. Note that the action is triggered every 10 seconds, if there is a stable internet connection, and the order has not been completed. To review the process, you will have to restart the application.

NB: This only works for the first item in the order history, as there is not active backend to trigger such actions

Features

  • Real-time order updates using Ably
  • Firebase authentication for secure access
  • Cached network images for improved performance
  • Generation of fake data for testing and demonstration
  • Use of Google Fonts for stylish typography
  • Google Sign-In for a seamless authentication experience
  • Currency formatting using intl package
  • Timeline styling with timeline_tile
  • Shimmer effect to indicate loading process
  • TimeAgo to display the time elapsed since an activity occurred

Dependencies

Getting Started

  1. Clone the repository:

    git clone https://github.com/yourusername/realtime-order-app.git
    
  2. Install Dependencies

    flutter pub get
    
  3. Run the project

    flutter run
    
    
    

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

eden-assessment-'s People

Contributors

collins-01 avatar

Watchers

 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.