# Local environment

This page will help you configure a local environment for your React Native app.

The usual first step is to install [Homebrew](http://brew.sh/) before configuring your local environment. This guide focuses on OSX operating systems.

## Install Dependencies

### Node and Watchman

[Node](https://nodejs.org/en/) is a JavaScript is an event driven platform for building fast and scalable network apps.

[Watchman](https://facebook.github.io/watchman/) is a file watching service built by Facebook.

`$ brew install node`

`$ brew install watchman`

### CocoaPods and Xcode

The React Native command interface.

`$ sudo gem install cocoapods`

### Xcode

The easiest way to get Xcode is by going to the Apple Store and installing it. This install will take some time so it's best to have a fast Wifi connection.

### Command Line tools

You will also need to install the Xcode Command Line Tools. Open Xcode, then choose "Preferences..." from the Xcode menu. Go to the Locations panel and install the tools by selecting the most recent version in the Command Line Tools dropdown.

### Create a new application

&#x20;`$ npx react-native init AwesomeProject`&#x20;

### Running the application

`$ npx react-native run-ios`

You should see your new app running in the iOS Simulator shortly.

![](/files/-M43JoKgnpCS5hvS3gTq)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jqn.gitbook.io/starting-react-native-developement/getting-started/local-environment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
