Skip to content

rmarsono/marvel-heroes-app

Repository files navigation

Marvel Heroes app by Rendy Marsono

React Native app that lets a user explore the Marvel character universe, find their favourite hero and view detailed info about them.

The app allows users to filter Marvel characters by their names. Tapping on a name will navigate to a screen with the characters' stats, description (if available) and display a gallery of comic books they have been featured in.

IMPORTANT

Marvel limits the amount of API calls made to the server from a particular account over a day. I have added some error handling to gracefully display a message when this limit is reached.

If this error is shown, one way to get around it is to use another account's private and public keys. The values are set in ./config/index.js. I considered storing these keys in .env but didn't want to over-complicate things.

How to view

  1. pull down the master branch
  2. run
yarn

in the command line to install dependencies

  1. run
yarn ios

to view the app on an IOS simulator

How to test (e2e)

  1. you will need detox CLI installed: https://github.com/wix/Detox/blob/master/docs/Introduction.GettingStarted.md
  2. in the command line, run
detox build

the first time you run this, it will take a while

  1. after detox finishes building, run
detox test
  1. the test will run through the pre-defined scenarios defined in ./e2e directory

Development notes

  • routing is done with react-navigation
  • uses React Native UI Kitten design system
  • uses React Native Chart Kit for charting

About

Flare HR tech challenge - Marvel Heroes app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors