GithubHelp home page GithubHelp logo

android-nimble-surveys's Introduction

Nimble Surveys

Description

I developed this Android app as part of the recruitment process when going through the hiring process at my old company, Nimble.

Below are the requirements and development notes that had to be met to successfully pass the coding challenge.

Requirements

  • Create an application that allows users to browse a list of surveys. For the UI, the application should look like the above screen.

  • Integrate with an OAuth API to retrieve data (see Resources section).

  • A survey card should display the following info:

    • Cover image (background)
    • Name (in bold)
    • Description

There should 2 actions:

  • The refresh icon in the top-left corner should fetch the list of surveys and update the list of surveys displayed

  • The button “Take Survey” should take the user to a new screen. Simply implement the navigation.

  • The list of surveys should be fetched when opening the application

  • The navigation indicator list (bullets) should be dynamic and based on the API response

Methodology

  • Develop the application using:

    • Android Studio
    • Gradle
  • Supported Android SDKs: 5.0 up

  • Use Git during the development process. Push to a public repository on Bitbucket, Github or Gitlab. Make regular commits and merge code using pull requests.

Resources

Integrate with the following API (OAuth 2 API):

Params name: access_token

Token: d9584af77d8c0d6622e2b3c554ed520b2ae64ba0721e52daa12d6eaa5e5cdd93

Notes :

  • To get the high resolution image just append “l” to the image url you obtain in the API response

  • If you get timeout or it’s too slow you can paginate the results using page, per_page query params e.g.

https://nimbl3-survey-api.herokuapp.com/surveys.json?page=1&per_page=10

If the token is expired, a new one can be obtained via

https://nimbl3-survey-api.herokuapp.com/oauth/token

curl https://nimbl3-survey-api.herokuapp.com/oauth/token --data
"grant_type=password&[email protected]&password=antikera"

The response should be:

{"access_token":"d9584af77d8c0d6622e2b3c554ed520b2ae64ba0721e52da
a12d6eaa5e5cdd93","token_type":"bearer","expires_in":7200,"create
d_at":1485174186}

The logic to fetch the token should be part of the authentication logic i.e. do not hardcode the access token into the app as it expires.

android-nimble-surveys's People

Contributors

jean-t86 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.