# Prepare to Production

1. Install Latest Ionic Framework

**`$ npm install -g ionic@latest`**

\#Browse the App

&#x20;Navigate to project directory

&#x20;   2\. Install package.json dependencies

**`$ npm install`**

&#x20;   3.Test your app on multiple screen sizes and platform types by starting a local development server

**`$ ionic serve`**

&#x20;**or**

**`$ ionic serve –lab`**

&#x20;   4\. Build iOS ( you need Xcode to make IOS build )

**`$ ionic cordova platform add ios`**

**`$ ionic cordova build ios --prod`**

&#x20;   5\. Build Android (after build you should sign \*.apk file)

**`$ ionic cordova platform add android --prod --release`**

&#x20;   6\. Deploying/Running on emulator

**`$ ionic cordova run android`**

## Read more detail for publish:

1. [App Store](https://ionicframework.com/docs/publishing/app-store)
2. [Goole Play](https://ionicframework.com/docs/publishing/play-store)
