Giter VIP home page Giter VIP logo

scdemo's Introduction

SCDemo - Standard Chartered Demo App

Author: P. Chugh January 1 2019

Overview

The task was to build a demonstration app with a GUI of my choice that calls a public testing api https://jsonplaceholder.typicode.com/. The assumptions made here are that this is not meant to be a fully working app and only a UI showcase. Hence some parts are not implemented such as modifying/adding todos, photos, users etc and also detecting network connectivity, slow connections, offline user access and other common system validation.

Screenshots

ios_screenshot_0 ios_screenshot_5 ios_screenshot_2 ios_screenshot_2 ios_screenshot_3 ios_screenshot_4

Highlights

  • Cross Platform app using React Native+MobX with only one codebase to maintain
  • Todos sorted by complete and incomplete
  • Auto rotate and resize screen elements when device orientation changes
  • Google Maps integration
  • Automatic Test Scripts on Detox
  • Photo gallery supporting zoom in and swipes
  • Standard Chartered Logo colors used from public website style guide

Instructions on building and running from Source on a Mac

Prerequisites

  • React Native v0.56+
  • XCode and Xcode CLI utilities
  • Cocao Pods (latest version required)
  • npm / nodeJS
  • Android Studio

iOS version

Step 1: Clone Repo

git clone https://github.com/neogeno/SCDemo.git

Step 2: Install dependencies

cd SCDemo
npm install
cd ios
pod repo update
pod install

Step 3: Build/Run in Simulator

react-native run-ios

Android version

Step 1: Clone Repo

git clone https://github.com/neogeno/SCDemo.git

Step 2: Install dependencies

cd SCDemo
npm install

Step 3: Ensure Android SDK and Emulator path is correct. Replace path to SDK below as necessary

export ANDROID_HOME=~/Documents/sdk
export PATH=$PATH:$ANDROID_HOME/emulator

Step 4: Show emulators available and run. Use ampersand to run in background process

emulator -list-avds
emulator @{NAME OF YOUR PREFERRED EMULATOR} &

Step 5: Build/Run for Simulator react-native run-android

Running Automated Tests

This project uses Detox to run end-to-end testing on the UI. The test specification is intentionally basic as it is intended to show the concept that I would use in a final app rather than implement comprehensive test case and code coverage. To run the tests for iOS type:

detox build
detox test

scdemo's People

Contributors

neogeno avatar

Stargazers

 avatar

Watchers

James Cloos 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.