Giter VIP home page Giter VIP logo

android-nasa-apod-viewer's Introduction

Nasa APOD Viewer

An Android application that retrieves and displays NASA's Astronomy Picture of the Day (APOD). This project is designed to demonstrate the ability to consume APIs, handle image loading, and implement clean architecture on Android.

Getting Started

To run this project, you will need to add your own NASA API key. Follow the instructions below:

  1. Obtain an API key from NASA API.
  2. Clone this repository to your local machine.
  3. Open the project in Android Studio or your preferred IDE.
  4. Create a file named local.properties (if it does not already exist) in the root directory.
  5. Add the following line to local.properties, replacing YOUR_API_KEY_HERE with your actual API key:
NASA_API_KEY = YOUR_API_KEY_HERE
  1. Sync your project with Gradle files and run the app.

Architecture

This project adheres to the MVP (Model-View-Presenter) architecture, separating the application into three interconnected components.

The project uses a single Activity architecture, represents a View in the MVP pattern. The communication between View and Presenter is handled through interfaces to ensure a clear separation of concerns and easier testing.

Libraries

  • Retrofit - A type-safe HTTP client for Android and Java.
  • Glide - For image loading.
  • Coroutines - For managing background threads with simplified code and reducing needs for callbacks.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • This project utilizes the NASA API, which is publicly available to use.
  • Thanks to NASA for providing such a wonderful API and all the amazing imagery.

Note: This project was built as part of a coding challenge for a job interview and is maintained for demonstration purposes.

android-nasa-apod-viewer's People

Contributors

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