From d66451dc0730baf37a138713ea0a95e3fe83a22e Mon Sep 17 00:00:00 2001 From: David Oduenye Date: Fri, 8 Sep 2023 19:16:18 -0400 Subject: [PATCH] init --- .github/workflows/CI.yaml | 5 ---- client/.eslintrc.js | 2 +- .../Frontend Resources.md => client/README.md | 5 ---- client/app.json | 15 ++++++++--- client/package.json | 8 +++--- client/yarn.lock | 26 ++++++++++++++++++- docs/Backend Resources.md => server/README.md | 6 +---- 7 files changed, 44 insertions(+), 23 deletions(-) rename docs/Frontend Resources.md => client/README.md (86%) rename docs/Backend Resources.md => server/README.md (90%) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 8aba075..8365e52 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -112,11 +112,6 @@ jobs: cd client yarn install - - name: Bundle React Native assets - run: | - cd client - react-native bundle --entry-file App.tsx --platform android --dev false --bundle-output /dev/null --assets-dest /dev/null - - name: Build Go app run: | cd server diff --git a/client/.eslintrc.js b/client/.eslintrc.js index 5ee5315..1679505 100644 --- a/client/.eslintrc.js +++ b/client/.eslintrc.js @@ -7,6 +7,6 @@ module.exports = { 'react/react-in-jsx-scope': 'off' }, env: { - // 'jest/globals': true + 'jest/globals': true } }; diff --git a/docs/Frontend Resources.md b/client/README.md similarity index 86% rename from docs/Frontend Resources.md rename to client/README.md index 8d624d5..8553fa6 100644 --- a/docs/Frontend Resources.md +++ b/client/README.md @@ -20,14 +20,9 @@ #### TypeScript [TypeScript Documentation](https://www.typescriptlang.org/docs/) -[TypeScript for Java Devs](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes-oop.html) - [TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/intro.html) [Learning TypeScript (book)](https://learning.oreilly.com/library/view/learning-typescript/9781098110321/) [Programming TypeScript (book)](https://learning.oreilly.com/library/view/programming-typescript/9781492037644/) -Intro to typescript -Web dev -React Native diff --git a/client/app.json b/client/app.json index aa3dca5..d025482 100644 --- a/client/app.json +++ b/client/app.json @@ -11,18 +11,27 @@ "resizeMode": "contain", "backgroundColor": "#ffffff" }, - "assetBundlePatterns": ["**/*"], + "assetBundlePatterns": [ + "**/*" + ], "ios": { - "supportsTablet": true + "supportsTablet": true, + "bundleIdentifier": "com.legacy" }, "android": { "adaptiveIcon": { "foregroundImage": "./src/assets/adaptive-icon.png", "backgroundColor": "#ffffff" - } + }, + "package": "com.davidoduneye.client" }, "web": { "favicon": "./src/assets/favicon.png" + }, + "extra": { + "eas": { + "projectId": "57aafa2e-4023-4046-b22f-478e3146cae0" + } } } } diff --git a/client/package.json b/client/package.json index 4ee44c2..e713589 100644 --- a/client/package.json +++ b/client/package.json @@ -4,8 +4,8 @@ "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", - "android": "expo start --android", - "ios": "expo start --ios", + "android": "expo run:android", + "ios": "expo run:ios", "web": "expo start --web", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"", @@ -16,13 +16,15 @@ "expo-status-bar": "~1.6.0", "jest": "^29.6.4", "react": "18.2.0", - "react-native": "0.72.4" + "react-native": "0.72.4", + "expo-splash-screen": "~0.20.5" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.1.6", "@react-native-community/eslint-config": "^3.2.0", "@types/react": "~18.0.14", + "@types/react-native": "^0.72.2", "babel-plugin-module-resolver": "^5.0.0", "eslint": "^8.48.0", "eslint-plugin-jest": "^27.2.3", diff --git a/client/yarn.lock b/client/yarn.lock index 5dc43f3..3a3dcba 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -2202,7 +2202,7 @@ resolved "https://registry.yarnpkg.com/@react-native/normalize-colors/-/normalize-colors-0.72.0.tgz#14294b7ed3c1d92176d2a00df48456e8d7d62212" integrity sha512-285lfdqSXaqKuBbbtP9qL2tDrfxdOFtIMvkKadtleRQkdOxx+uzGvFr82KHmc/sSiMtfXGp7JnFYWVh4sFl7Yw== -"@react-native/virtualized-lists@^0.72.8": +"@react-native/virtualized-lists@^0.72.4", "@react-native/virtualized-lists@^0.72.8": version "0.72.8" resolved "https://registry.yarnpkg.com/@react-native/virtualized-lists/-/virtualized-lists-0.72.8.tgz#a2c6a91ea0f1d40eb5a122fb063daedb92ed1dc3" integrity sha512-J3Q4Bkuo99k7mu+jPS9gSUSgq+lLRSI/+ahXNwV92XgJ/8UgOTxu2LPwhJnBk/sQKxq7E8WkZBnBiozukQMqrw== @@ -2328,6 +2328,23 @@ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf" integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== +"@types/react-native@^0.72.2": + version "0.72.2" + resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.72.2.tgz#27c931a899c555b28e20cdd12e570b017808de96" + integrity sha512-/eEjr04Zqo7mTMszuSdrLx90+j5nWhDMMOgtnKZfAYyV3RwmlpSb7F17ilmMMxZWJY81n/JZ4e6wdhMJFpjrCg== + dependencies: + "@react-native/virtualized-lists" "^0.72.4" + "@types/react" "*" + +"@types/react@*": + version "18.2.21" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.21.tgz#774c37fd01b522d0b91aed04811b58e4e0514ed9" + integrity sha512-neFKG/sBAwGxHgXiIxnbm3/AAVQ/cMRS93hvBpg8xYRbeQSPVABp9U2bRnPf0iI4+Ucdv3plSxKK+3CW2ENJxA== + dependencies: + "@types/prop-types" "*" + "@types/scheduler" "*" + csstype "^3.0.2" + "@types/react@~18.0.14": version "18.0.38" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.38.tgz#02a23bef8848b360a0d1dceef4432c15c21c600c" @@ -4201,6 +4218,13 @@ expo-modules-core@1.5.11: compare-versions "^3.4.0" invariant "^2.2.4" +expo-splash-screen@~0.20.5: + version "0.20.5" + resolved "https://registry.yarnpkg.com/expo-splash-screen/-/expo-splash-screen-0.20.5.tgz#ebeba3e3977606830f74f506ab2cc25042bb7efd" + integrity sha512-nTALYdjHpeEA30rdOWSguxn72ctv8WM8ptuUgpfRgsWyn4i6rwYds/rBXisX69XO5fg+XjHAQqijGx/b28+3tg== + dependencies: + "@expo/prebuild-config" "6.2.6" + expo-status-bar@~1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/expo-status-bar/-/expo-status-bar-1.6.0.tgz#e79ffdb9a84d2e0ec9a0dc7392d9ab364fefa9cf" diff --git a/docs/Backend Resources.md b/server/README.md similarity index 90% rename from docs/Backend Resources.md rename to server/README.md index e0f26ef..911f706 100644 --- a/docs/Backend Resources.md +++ b/server/README.md @@ -4,11 +4,7 @@ **Go** -- [Installing Go (Golang)](https://golang.org/doc/install) - -**MongoDB** - -- [Installing MongoDB](https://docs.mongodb.com/manual/installation/) +- [Installing Go (Golang)](https://golang.org/doc/install)s **Echo Web Framework for Go**