Coder Social home page Coder Social logo

czino / peach-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peach2peach/peach-app

0.0 0.0 0.0 53.71 MB

Frontend Code for Peach App

License: Other

Shell 0.09% JavaScript 1.01% Ruby 0.16% Objective-C 0.11% Java 0.42% TypeScript 98.04% CSS 0.02% Objective-C++ 0.09% HTML 0.05%

peach-app's Introduction

Installation

Follow react native setup guide

Run

npm install
npx react-native link

Android

Environment Setup

Generating Signed APK

https://s-pace.github.io/react-native/docs/signed-apk-android.html

iOS

Install dependencies

cd ios && pod install

Environment Setup

Copy template for each environment

cp .env.dist .env.sandbox
cp .env.dist .env.development
cp .env.dist .env.production

Then edit the variables according to your setup

Run simulator

iOS

npm run ios

To choose specific target npm run ios -- --simulator="iPhone SE (3rd generation)"

Troubles with M1/M2 chips, run: arch -x86_64 npm run ios

Android

npm run android

Web

npm run web

Test

Unit testing

npm run test

Run specific tests npm run test ./tests/utils/validationUtils.test.js

npm run test ./tests/utils/*.test.js

E2E testing

Unit testing is powered by Detox

Follow their guides or this is the quick setup:

Mac OS X

Install detox-cli

npm install -g detox-cli

Install applesimutils
brew upgrade
brew tap wix/brew
brew install applesimutils

Running E2E Tests

  1. Build the app for testing test:e2e:ios:build or test:e2e:android:build

  2. Running tests test:e2e:ios or test:e2e:android

Troubleshooting

Can't build Android

General

  1. Clean gradle

cd android & ./gradlew clean

  1. Clear metro cache

npm run cache:clear

Error: Duplicate resources

  1. Run rm -rf android/app/src/main/res/drawable-*
  2. Then open folder android in Android Studio and build project
  3. Select Build/Generate signed APK to build release

Can't build iOS

After react-native updates

  1. Install pods
npx react-native link
cd ios && pod install

Adding fonts

  1. Add fonts to assets/fonts
  2. Add font file names in Info.plist under UIAppFonts

then run

  1. npx react-native-asset

before building the app

Initializing the peach-api submodule

When cloning this repo you will have to run: git submodule update --init to initialize the peach-api submodule.

peach-app's People

Contributors

czino avatar mmanke188 avatar feymery avatar dependabot[bot] avatar stcb avatar snyk-bot 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.