GithubHelp home page GithubHelp logo

bhaveshdaswani93 / chainreactapp2019 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from infinitered/chainreactapp2019

0.0 1.0 0.0 254.55 MB

The Chain React 2019 Conference App

Home Page: https://infinite.red/ChainReactConf

Python 0.71% Java 1.19% JavaScript 5.40% Objective-C 16.66% TypeScript 68.40% Ruby 6.83% Shell 0.83%

chainreactapp2019's Introduction

The official Chain React App for #ChainReact2019

⬆️ How to Setup

Step 1: git clone this repo:

Step 2: cd to the cloned repo:

Step 3: Run the setup script: ./bin/setup

▶️ How to Run App

  1. cd to the repo
  2. Run Build for either OS
  • for iOS
    • run react-native run-ios
  • for Android
    • run react-native run-android

SecretsssSSSsssSSsssSSSsss 🐍

If you are working on the AWS AppSync talk discussion feature of the app, you will need a .env file with the proper API token, as well as the amplify-meta.json file. Please ping @jamon in the #chainreact channel of the Infinite Red community Slack and we'll hook you up!

Apologies -- we can no longer provide secrets for this app to people outside of Infinite Red.

Deploying

  1. Follow steps 2-5 in the secrets repo (See Jamon or Robin for access)
  2. Open the Xcode Workspace and go to Build Settings. Make sure "Manage certificates automatically" is not checked, and select the correct certificate. If you don't see any certificates you may need to run fastlane match development and fastlane match appstore
  3. To deploy iOS beta:
cd ios
bundle
bundle exec fastlane ios bump_build_number
bundle exec fastlane ios beta
  • If prompted for an app-specific password, it's located in the secrets repo.
  • If the build is successful, commit the new build number.
  1. To deploy Android beta:
cd android
bundle
bundle exec fastlane android beta
  • If the build was successful, commit the build number

🚫 TSLint Compliant

This project adheres to TSLint and Prettier. We suggest you enable linting to keep your project compliant during development. You can lint the project by running yarn lint.

To Lint on Commit

This is implemented using husky. There is no additional setup needed.

Bypass Lint

If you have to bypass lint for a special commit that you will come back and clean (pushing something to a branch etc.) then you can bypass git hooks with adding --no-verify to your commit command.

Understanding Linting Errors

The linting rules are from tslint-config-prettier. Regular TS errors can be found with descriptions here.

Detox End-To-End Testing

Setup

Note that Detox is only configured for macOS.

To get your Detox tests up and running, you'll need to install some global dependencies:

  1. Install the latest version of Homebrew

  2. Make sure you have Node installed (at least 8.6.0).

  3. Install applesimutils, which will allow Detox to communicate with the iOS simulator:

brew tap wix/brew && brew install applesimutils
  1. Install the Detox CLI
  yarn global add detox-cli

Adding tests

We've gotten you started with ./e2e/firstTest.spec.js, which tests that the two main example screens render properly.

Note that in order to pick up elements by ID, we've added the testID prop to the component.

Running tests

  1. Start the packager
yarn start
  1. Run the app

In a separate terminal window from the packager:

yarn build:e2e
  1. Run the tests
yarn test:e2e

For more information, make sure to check out the official Detox Docs

chainreactapp2019's People

Contributors

robinheinze avatar gantman avatar kevinvangelder avatar infinitered-circleci avatar ryanlntn avatar achuvm avatar leonskim avatar morgandonze avatar carlinisaacson avatar jamonholmgren avatar dabit3 avatar brentvatne avatar nikolay-stoev avatar

Watchers

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