Giter VIP home page Giter VIP logo

picblast's Introduction

PicBlast

Sample app to demonstrate MVP pattern, Reactive programming, Dagger2 and Retrofit2. This app uses Imgur.com APIs to fetch albums and images and displays it in android app.

How to use the code

Install JDK8+, Androi studio 3.0+

To use this app you need an account in https://imgur.com/.

  • First of all create some albums and upload some photos
  • Register an app in https://api.imgur.com/oauth2/addclient
  • Make sure you enter a unique callback url here (like: imgurtest_yourname://sample)
  • Update the client ID in org.drulabs.picblast.di.NetworkModuel.java (first statement inside class) with CLIENT ID of the app you created in the previous step
  • Open manifest file and look for LoginActivity, update the android scheme with the callback URL you selected in step 3 (for this case it will be < data android:scheme="imgurtest_yourname"/>)
  • If you see some error while building, clean the rebuild the project. This project depends on libraries like dagger2, objectbox etc, that perform some auto code generation. So you may have to rebuild the project everytime you launch the project.

if you still see some error please leave an issue in this repository

API documentation for imgur is here: https://apidocs.imgur.com/

A recording of the session: https://youtu.be/PSwsBvxyY7I

RxJava2 Experiments: RxJava2 Experiments: https://github.com/drulabs/RxJava2DemoAndExperiments.git

picblast's People

Contributors

drulabs avatar

Stargazers

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