Add React Native tooling and project config

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ravi Gulhane 2026-07-08 13:57:57 +05:30
parent 56b4dd7861
commit 153d552894
5 changed files with 98 additions and 0 deletions

8
.env.example Normal file
View File

@ -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

4
.eslintrc.js Normal file
View File

@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: '@react-native',
};

80
.gitignore vendored Normal file
View File

@ -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

5
.prettierrc.js Normal file
View File

@ -0,0 +1,5 @@
module.exports = {
arrowParens: 'avoid',
singleQuote: true,
trailingComma: 'all',
};

1
.watchmanconfig Normal file
View File

@ -0,0 +1 @@
{}