Skip to content

Architecture

Michael Bucher edited this page May 30, 2021 · 1 revision

Overview

The project is split into two repositories backend and frontend. The frontend serves to be the visualisation of the airbnb data in filtered form or as a heat map and provide an interface to get price predictions.

Thanks to flutter the frontend supports web-application, iOS and Android.

Accessing the backend API

The API url that accesses the backend can be changed in the host.dart file. Since the docker file provides an easy way to run the application as a web-application, the http://localhost:5000 is stored by default.

If you want run the application on a iOS or Android device, there's a need to deploy the backend and change the host url in the host.dart, since localhost can't be accessed through a mobile device.

Source code structure

The source code contains the following folders:

  • api

Is responsible to fetch the required data from the backend.

  • models

Contains the dart objects that are used within the application.

  • screens

Contains the home screen and the flat detail screen.

  • widget

Contains components that are printed to the screen as the bottom sheets for the filtering and price prediction, as well as the google maps widget.

Clone this wiki locally