From 153d552894a859e9f8aac2674e8f1a7991af46c5 Mon Sep 17 00:00:00 2001 From: Ravi Gulhane <> Date: Wed, 8 Jul 2026 13:57:57 +0530 Subject: [PATCH] Add React Native tooling and project config Co-authored-by: Cursor --- .env.example | 8 +++++ .eslintrc.js | 4 +++ .gitignore | 80 +++++++++++++++++++++++++++++++++++++++++++++++++ .prettierrc.js | 5 ++++ .watchmanconfig | 1 + 5 files changed, 98 insertions(+) create mode 100644 .env.example create mode 100644 .eslintrc.js create mode 100644 .gitignore create mode 100644 .prettierrc.js create mode 100644 .watchmanconfig diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d0f6616 --- /dev/null +++ b/.env.example @@ -0,0 +1,8 @@ +# Copy to .env and adjust for your machine. +# +# Android emulator: http://10.0.2.2:3001/api (NOT localhost) +# iOS Simulator: http://localhost:3001/api +# Physical device: http://YOUR_MAC_LAN_IP:3001/api (backend HOST=0.0.0.0 in backend/.env) +# +# The app also rewrites localhost → 10.0.2.2 on Android at runtime. +API_BASE_URL=http://10.0.2.2:3001/api diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..187894b --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: '@react-native', +}; diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85a8643 --- /dev/null +++ b/.gitignore @@ -0,0 +1,80 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +**/.xcode.env.local + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof +.cxx/ +*.keystore +!debug.keystore +.kotlin/ + +# Env (keep .env.example) +.env +.env.local + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +**/fastlane/report.xml +**/fastlane/Preview.html +**/fastlane/screenshots +**/fastlane/test_output + +# Bundle artifact +*.jsbundle + +# Ruby / CocoaPods +**/Pods/ +/vendor/bundle/ +.bundle/ + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check* + +# testing +/coverage + +# Yarn +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..06860c8 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,5 @@ +module.exports = { + arrowParens: 'avoid', + singleQuote: true, + trailingComma: 'all', +}; diff --git a/.watchmanconfig b/.watchmanconfig new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.watchmanconfig @@ -0,0 +1 @@ +{}