The Sales Digitis project is a 2D 3D seller to facilitate sales and calculate cost of sales.
Before you begin, ensure that you have the following prerequisites installed on your machine:
- Node.js (version 12 or above): Download Node.js
- npm (version 6 or above): Installed automatically with Node.js
- Java Development Kit (JDK 8 or above): Download JDK (required for Android development)
- Android Studio: Download Android Studio (required for Android development)
Follow the steps below to set up and run your React Native project:
Clone the project repository to your local machine.
git clone https://github.com/empiretylh/salesdigit.git
Navigate to the project directory.
cd salesdigit
Install project dependencies.
npm install
To run the React Native project on Android:
Open Android Studio and configure the necessary SDK and virtual device(s).
Start an Android emulator or connect a physical device to your machine.
Run the following command in the project directory:
npx react-native run-android
This will compile and launch the app on the connected Android device or emulator.
To run the React Native project on iOS:
Open the project in Xcode.
In Xcode, select the desired target device (e.g., an iOS simulator or a connected iPhone/iPad).
Build and run the project using the "Run" button or press Cmd+R.
Alternatively, you can run the following command in the project directory:
npx react-native run-ios
This will compile and launch the app on the selected iOS device or simulator.