Skip to content

atahani/retrofit-sample

Repository files navigation

Retrofit Sample Project

this project create for Retrofit Tutorial, fake Twitter client with these feature :

  • user can post new tweet
  • user can edit or delete tweet
  • custom gson converter
  • custom error handling
  • sign up / sign in with email address
  • refresh token when access token expired
  • update user profile
  • upload image user
  • search in tweets by feel

how can use from this project

1- the backend deploy with Node.js, install Node.js then clone this repo and checkout related branch, remember install Node.js Module via npm

$ git clone https://github.com/atahani/rest-api-sample
$ cd rest-api-sample
$ git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs
$ git checkout simple_rest_api
$ npm install
$ node server.js

2 - repo contain different branches in multiple steps, so you should clone this repo and checkout related branch

$ git clone https://github.com/atahani/retrofit-sample
$ cd retrofit-sample
$ git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs
$ git checkout 01_configure_project

3- set the REST_API_BASE_URL, CLIENT_ID and CLIENT_KEY values inside ClientConfigs.java class

NOTE: this application just create to demonstrate how we can use from Retrofit to talk with REST API

for more information see the slide and videos

About

Fake Twitter client with Retrofit , the backend service code available in https://github.com/atahani/rest-api-sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages