Coder Social home page Coder Social logo

tlcspacex's Introduction

SpaceX Mission Launch and Rocket Info

This is a simple application displaying the list of SpaceX's mission launches plus some rocket information in each of the launches.

Architecture / Design Pattern

We went with a modified MVVM (Model View View-Model) architecture to structure our project and give each of the component its own separate concerns. Model's only concern is how it represent the data coming from the server. View's only job is to display the information when needed and ViewModel's job is to mould this information and pass it onto the view by triggering an update (property observers).

We have a ViewModel manager class that takes control of the accesses and flow of data from the backend call, down to triggering the view to display.

API

We are using the V4 version of this SpaceX API.

Although the data is not that big, at first I planned to have a pagination querying only 10 data per call then subsequently calling the api again to fetch another 10. But, apparently, this feature has been removed in V4. We need to have our authentication key setup and use when querying if we wanted to have this feature.

Nevertheless, the fetching and loading of the launch list is relatively quick because of the amount of data being fetch.

Assumptions

When sorting by date, I have it sorted from latest to earliest as I believe user's would want to checkout what the upcoming missions instead of checking out the past missions.

Getting all mission launches from the API will already return the whole Launch properties that should be feasible to populate Launch Info. I would assume just assigning the viewModel from list to info will eliminate the need to execute another API call. However, since one of the requirement needs to use One Launch, we have to pass the id instead from list to info and execute a fetch on One Launch endpoint to satisfy the requirement.

Additional Bits

Filtering and sorting is a combined feature so when the user filter mission's status and sort it, it still works. As oppose to having a separate sorting and filtering feature that acts on the list.

Pull down refresh will fetch a fresh set of list and removing the filtered / sorted list if there is any.

Screenshot

TLCSpaceX

Limitation

The grouping of data when sorted (by alphabet and by year) is still a wip. The setup of sections and headers is already functional but applying the compositional layout to use the header breaks the UI. Looking to resolve soon but submitting now as discussed with Jack.

License

Project is under the MIT License. Please see the LICENSE file for more information.

Attribution

Space icons that I used for the app's icon is created by amonrat rungreangfangsai from Flaticon.

Continuation

Implement Compositional Layout - See Bookmarks

tlcspacex's People

Contributors

arvinq 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.