GithubHelp home page GithubHelp logo

marvelapp's Introduction

Marvel Characters

Android app that displays a list of marvel characters and the details of each character

Api Website: https://developer.marvel.com/documentation/apiresults

Endpoint: /v1/public/characters

Instructions

In order to make this app to work, simply add your own public and private keys to the Constants file values:

const val PUBLIC_KEY = "Add here your own public key"

const val PRIVATE_KEY = "Add here your own private key"

For security purposes isn't recommendable to publish your own keys in a public repository.

Structure

The app is implemented based on MVVM design pattern.

Models: represented as data classes that provide the needed data to be displayed in the views from network.

ViewModels: the logic of how to retrieve the data from backend or network in our case is Marvel API.

Views: the app UI that contains two activities. Each one is responsible for displaying it's data.

Repository: here we store the api endpoints with the desired parameters so we can obtain data from the internet.

Adapter: required class to load data in a recyclerView.

Network: the file here returns a retrofit instance that we need to build up our coroutines calls.

Utilites: a handy package where we store values or even method that we can use across the entire up in order to reduce boilerplate code.

Dependencies

Android architecture components:

ViewModel

LiveData

Libraries:

Retrofit

Gson

Picasso

Swipe Refresh

Screenshots

marvelapp's People

Contributors

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