How to Export and Publish from Draftbit with Expo

Once you’ve finished your project, it’s time to take it from the Builder to the phone and get it published! It's easy to do this with Expo

To deploy your app from your local machine:

Make sure your terminal is setup with HomeBrew and nodeJS.

HomeBrew is a tool that lets you use other tools that developers created to make dev life easy and nodeJS is a backend technology written in Javascript(which is also what your app is written in).

To install HomeBrew, open your terminal and run this command:

/usr/bin/ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/install](https://raw.githubusercontent.com/Homebrew/install/master/install))"

Once that’s installed you can setup yarn which will help you setup node. yarn is a package manager that gives you access to a bunch of code (packages) written by other developers that you can use in your project.

In your terminal, run:

brew install yarn

Once that’s finished, install expo-cli and run:

yarn global add expo-cli

Installing expo-cli will give you access to Expo’s developer tools that will help you as you continue to develop your application. For example, expo-cli will allow you to use Live Preview by running the command expo start in your project’s directory. You can read more about expo-cli on Expo’s documentation site.

After you have expo-cli installed, you can publish your app directly from the command line.

In the terminal, run expo publish while in your project’s directory. Running this command will generate a shareable URL with a QR code to load your project in Expo. You can continue to republish the project and all changes will be pushed to the same URL. Read more about publishing here. You can also read about the process of deploying your app to the App Store/Google Play Store here.