1---
2title: Create a project
3description: Learn how to create a new Expo project and run it on your device.
4---
5
6import { Collapsible } from '~/ui/components/Collapsible';
7import { Terminal } from '~/ui/components/Snippet';
8import ImageSpotlight from '~/components/plugins/ImageSpotlight';
9import { Step } from '~/ui/components/Step';
10import { BoxLink } from '~/ui/components/BoxLink';
11import { BookOpen02Icon } from '@expo/styleguide-icons';
12
13The process of running a new Expo project consists of three steps. You start by initializing a new project, then start the development server with Expo CLI and finally open the app on your device with Expo Go to see your changes live.
14
15<Step label="1">
16
17## Initialize a new project
18
19To initialize a new project, use [`create-expo-app`](/more/glossary-of-terms/#create-expo-app) to run the following command:
20
21<Terminal
22  cmd={[
23    '# Create a project named my-app',
24    '$ npx create-expo-app my-app',
25    '',
26    '# Navigate to the project directory',
27    '$ cd my-app',
28  ]}
29  cmdCopy="npx create-expo-app my-app && cd my-app"
30/>
31
32> **info** You can also use the `--template` option with the `create-expo-app` command. Run `npx create-expo-app --template` to see the list of available templates.
33
34</Step>
35
36<Step label="2">
37
38## Start the development server
39
40To start the development server, run the following command:
41
42<Terminal cmd={['$ npx expo start']} />
43
44When you run the above command, the Expo CLI starts [Metro Bundler](/guides/customizing-metro). This bundler is an HTTP server that compiles the JavaScript code of your app using [Babel](https://babeljs.io/) and serves it to the Expo app. See how [Expo Development Server](/more/expo-cli/#develop) works for more information about this process.
45
46</Step>
47
48<Step label="3">
49
50## Open the app on your device
51
52To open the app your device that has [Expo Go](/get-started/expo-go/) already installed:
53
54- On your Android device, press **Scan QR Code** on the **Home** tab of the Expo Go app and scan the QR code you see in the terminal.
55- On your iPhone or iPad, open the default Apple **Camera** app and scan the QR code you see in the terminal.
56
57You can open the project on multiple devices simultaneously. Go ahead and try it on both phones at the same time if you have them handy.
58
59<Collapsible summary="Is the app not loading on your device?">
60
61First, make sure you are on the same Wi-Fi network on your computer and your device.
62
63If it still doesn't work, it may be due to the router configuration &mdash; this is common for public networks. You can work around this by choosing the **Tunnel** connection type when starting the development server, then scanning the QR code again.
64
65<Terminal cmd={['$ npx expo start --tunnel']} />
66
67> Using the **Tunnel** connection type will make the app reloads considerably slower than on **LAN** or **Local**, so it's best to avoid tunnel when possible. You may want to install an emulator/simulator to speed up development if **Tunnel** is required for accessing your machine from another device on your network.
68
69</Collapsible>
70
71<Collapsible summary="Using an emulator or a simulator?">
72
73If you are using an emulator/simulator, you may find the following Expo CLI keyboard shortcuts to be useful to open the app on any of the following platforms:
74
75- Pressing <kbd>a</kbd> will open in an [Android Emulator or connected device](/workflow/android-studio-emulator).
76- Pressing <kbd>i</kbd> will open in an [iOS Simulator](/workflow/ios-simulator).
77- Pressing <kbd>w</kbd> will open in a [web browser](/workflow/web). Expo supports all major browsers.
78
79</Collapsible>
80
81</Step>
82
83<Step label="4">
84
85## Make your first change in App.js
86
87Now, all the steps are completed to get started, you can open **App.js** file in your code editor and change the contents of the existing `<Text>` to `Hello, world!`. You are going to see it update on your device.
88
89Amazing, progress! You now have the Expo toolchain running on your machine, can edit the source code for a project, and see the changes live on your device.
90
91<Collapsible summary="Changes not showing up on your device?">
92
93Expo Go is configured by default to automatically reload the app whenever a file is changed, but let's make sure to go over the steps to enable it in case somehow things aren't working.
94
95- Make sure you have the [development mode enabled in Expo CLI](/workflow/development-mode#development-mode).
96- Close the Expo app and reopen it.
97- Once the app is open again, shake your device to reveal the developer menu. If you are using an emulator, press <kbd>Ctrl</kbd> + <kbd>M</kbd> for Android or <kbd>Cmd ⌘</kbd> + <kbd>D</kbd> for iOS.
98- If you see **Enable Fast Refresh**, press it. If you see **Disable Fast Refresh**, dismiss the developer menu. Now try making another change.
99
100  <ImageSpotlight
101    alt="Developer menu in Expo Go app."
102    src="/static/images/get-started/developer-menu.png"
103    style={{ maxWidth: 720 }}
104  />
105
106</Collapsible>
107
108</Step>
109
110## Next step
111
112<BoxLink
113  title="Project structure"
114  description="Now that you have your first project up and running, in the next step, you will learn more about your Expo project's structure."
115  href="/develop/project-structure"
116  Icon={BookOpen02Icon}
117/>
118
119<BoxLink
120  title="Tutorial"
121  description="If you are new to Expo, learn more about the ecosystem by creating a universal app that runs on Android, iOS, and web."
122  href="/tutorial/introduction"
123  Icon={BookOpen02Icon}
124/>
125