---
tags: Node.js, yarn, npm, package.json
---
# Bundle the app from local:
## :memo: todo list
0. Set up your enviorment
1. Clone the project and install it
2. Run the bundle script
### 0. Set up your enviorment
#### 1. We need git:
```
MacOSX:
https://git-scm.com/download/mac
```
```
Windows:
https://git-scm.com/download/win
```
#### 2. We need node.js:
**Node.js install link:**
https://nodejs.org
#### 3. We need Xcode:
**Xcode link:**
https://apps.apple.com/us/app/xcode/id497799835
#### 4. We need Android Studio:
**Android Studio:**
https://developer.android.com/studio
#### 3. Intall yarn (Recommend):
**yarn install link:**
https://classic.yarnpkg.com/lang/en/docs/install
### 1. Clone the project and install it
```=
git clone git@github.com:none-land/exchange-app.git
cd exchange-app
yarn install
npx pod-install
```
### 2. Run the bundle script
**Android**
install your app on simulator:
```
Dev: android:dev
Staging: android:staging
Production: android:prod
```
(Note: Please make sure your react-native server is runing)
The script above would run the server automatically, you still can run it manually by the script below
```
yarn start
```
bundle apk:
```
Dev: yarn android:devAPK
Staging: yarn android:stgAPK
Production: yarn android:devAPK
```
**iOS**
install your app on simulator:
1. Excute Xcode and open the ZoneWallet.xcworkspace
`location: /exchange-app/ios/ZoneWallet.xcworkspace`

2. Select the env you want to install:

3. Run the script:

(Again: please make sure your sever is runing):
