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';
11
12The 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.
13
14<Step label="1">
15
16## Initialize a new project
17
18To initialize a new project, use [`create-expo-app`](/more/glossary-of-terms/#create-expo-app) to run the following command:
19
20<Terminal
21  cmd={[
22    '# Create a project named my-app',
23    '$ npx create-expo-app my-app',
24    '',
25    '# Navigate to the project directory',
26    '$ cd my-app',
27  ]}
28  cmdCopy="npx create-expo-app my-app && cd my-app"
29/>
30
31> **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.
32
33</Step>
34
35<Step label="2">
36
37## Start the development server
38
39To start the development server, run the following command:
40
41<Terminal
42  cmd={['$ npx expo start']}
43  cmdCopy="npx expo start"
44/>
45
46When 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.
47
48</Step>
49
50<Step label="3">
51
52## Open the app on your device
53
54To open the app your device that has Expo Go already installed:
55
56- 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.
57- On your iPhone or iPad, open the default Apple **Camera** app and scan the QR code you see in the terminal.
58
59You 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.
60
61<Collapsible summary="Is the app not loading on your device?">
62
63First, make sure you are on the same Wi-Fi network on your computer and your device.
64
65If 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.
66
67<Terminal cmd={['$ npx expo start --tunnel']} />
68
69> 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.
70
71</Collapsible>
72
73<Collapsible summary="Using an emulator or a simulator?">
74
75If 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:
76
77- Pressing <kbd>a</kbd> will open in an [Android Emulator or connected device](/workflow/android-studio-emulator).
78- Pressing <kbd>i</kbd> will open in an [iOS Simulator](/workflow/ios-simulator).
79- Pressing <kbd>w</kbd> will open in a [web browser](/workflow/web). Expo supports all major browsers.
80
81</Collapsible>
82
83</Step>
84
85<Step label="4">
86
87## Make your first change in App.js
88
89Now, 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.
90
91Amazing, 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.
92
93<Collapsible summary="Changes not showing up on your device?">
94
95Expo 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.
96
97- Make sure you have the [development mode enabled in Expo CLI](/workflow/development-mode#development-mode).
98- Close the Expo app and reopen it.
99- 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.
100- If you see **Enable Fast Refresh**, press it. If you see **Disable Fast Refresh**, dismiss the developer menu. Now try making another change.
101
102  <ImageSpotlight
103    alt="Developer menu in Expo Go app."
104    src="/static/images/get-started/developer-menu.png"
105    style={{ maxWidth: 720 }}
106  />
107
108</Collapsible>
109
110</Step>
111
112## Next step
113
114<BoxLink
115  title="Project structure"
116  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."
117  href="/develop/project-structure"
118/>
119
120{/* Add a link to the project structure page here to allow the user to continue their journey */}
121
122{/* Add a link to the tutorial here */}
123