Giter Site home page Giter Site logo

carminetoriello95 / vehicle_auction_flutter_coding_challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 303 KB

A flutter coding challenge for a vehicle auction search scenario

Kotlin 0.09% Ruby 1.65% Swift 1.10% Objective-C 0.02% Dart 70.65% CMake 11.09% C++ 13.44% C 0.84% HTML 1.12%

vehicle_auction_flutter_coding_challenge's Introduction

vehicle_auction__flutter_coding_challenge

A Flutter challenge for a vehicle auction search scenario.

Screen-Recording-2023-06-15-at-12.24.15.mp4

It requires:

  • Handling login of a user. Store login credentials locally so that the user is automatically logged in when opening the app in the future.

  • Requesting data with http package. The response can return a success object, multiple choices, an error object or throw exception. Therefore it's needed to handle all these scenarios.

  • Showing the data or the errors to the user.

Getting Started

  • clone the repo
  • run pub get for dependencies
  • run build_runner for code generation

Login User credentials (can be found in the file lib/core/mocks/auth_client.dart):

Coding methodology

Main packages used: dependency injection (get_it, injectable), reactive programming (rxdart, flutter_bloc), functional programming (dartz), freezed.

The project has been structured following the clean code architecture described by uncle Bob.

Therefere the app is structured with the following directories and files:

  • lib/
    • core/
    • features/
    • di_config.dart
    • main.dart

Core

The core folder contains utility services that can be used throughout all the features, such as input fields validation or errors.

Features

The features folder contains the features. Each feature is structured in the following way:

  • data
  • domain
  • presentation

The data layer is the one that interacts with the outside world in case of remote data source or with the local storage in case of local data source.

The domain layer is made of pure dart code and contains the entities that characterize the core of the feature

The presentation layer contains the code for showing the data to the users throught the UI and manages the state of the UI

vehicle_auction_flutter_coding_challenge's People

Contributors

carminetoriello95 avatar

Watchers

 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.