Skip to content

rgabs/github-repo-search

Repository files navigation

Github repo search

Github Repo search app for web, native Android and iOS

Boilerplate URL: https://github.com/callstack/universal-react-app

Installation

Simply clone the repo and run yarn in root project directory.

Getting started

Web

yarn run test-update

And head to http://localhost:3000/

NOTE: Github login will work only on port 3000 since github redirects to http://localhost:3000/ on successful authentication.

Native

At the beginning you need to start haul with:

yarn run haul

Now you can proceed with running your app. To run iOS version:

yarn run ios

and for Android similar:

yarn run android

NOTE: You need XCode and Android SDK + emulator to run the native side. Also disable JS deltas on the android simulator

Testing

yarn run test

For running the tests in watch mode

yarn run test

For updating/creating test snapshots

Screenshots



Features

  • Search for public Github repos by repo name.
  • Sort functionality in each header.
  • Caching of previously searched repos.
  • Github login integration. The user's repos will be highlighted.
  • Pagination/Sorting/Flexible rows on the UI.
  • Shared Logic of the app between Native Mobile and web.

TODO

  • Write unit test cases for the codebase
  • Persist app state when we login to Github on the web app.