1---
2title: Create your first app
3---
4
5import { Terminal } from '~/ui/components/Snippet';
6import ImageSpotlight from '~/components/plugins/ImageSpotlight';
7import { LinkBase } from '~/ui/components/Text';
8
9In this chapter, let's learn how to create a new Expo project and how to get it running.
10
11## Prerequisites
12
13We'll need the following tools to get started:
14
15- Install [Expo Go](https://expo.dev/client) on a physical device.
16- Prepare for development by [installing the required tools](/get-started/installation/#requirements).
17
18This tutorial also assumes that you have a basic knowledge of JavaScript and React. If you have never written React code, go through [the official React tutorial](https://reactjs.org/tutorial/tutorial.html).
19
20## Step 1: Initialize a new Expo app
21
22We will use <LinkBase href="/workflow/glossary-of-terms/#create-expo-app" openInNewTab>`create-expo-app`</LinkBase> to initialize a new Expo app. It is a command line tool that allows to create a new React Native project with the `expo` package installed.
23
24It will create a new project directory and install all the necessary dependencies to get the project up and running locally. Run the following command in your terminal:
25
26<Terminal
27  cmd={[
28    '# Create a project named StickerSmash',
29    '$ npx create-expo-app StickerSmash',
30    '',
31    '# Navigate to the project directory',
32    '$ cd StickerSmash',
33  ]}
34  cmdCopy="npx create-expo-app StickerSmash && cd StickerSmash"
35/>
36
37This command will create a new directory for the project with the name: **StickerSmash**.
38
39Let's also <a href="/static/images/tutorial/sticker-smash-assets.zip" download>download the assets</a> that we will need throughout this tutorial. After downloading the archive, unzip it and replace the existing **assets** directory with it in the project directory. This will override the default assets when the new project is initialized.
40
41Now, let's open the project directory in our favorite code editor or IDE. Throughout this tutorial, we will use VS Code for our examples.
42
43## Step 2: Install dependencies
44
45To run the project on the web, we need to install the following dependencies that will help to run the project on the web:
46
47<Terminal cmd={['$ npx expo install react-dom react-native-web @expo/webpack-config']} />
48
49## Step 3: Run the app on mobile and web
50
51In the project directory, run the following command to start a <LinkBase href="/guides/how-expo-works/#expo-development-server" openInNewTab>development server</LinkBase> from the terminal:
52
53<Terminal cmd={['$ npx expo start']} />
54
55Once the development server is running, the easiest way to launch the app is on a physical device with Expo Go. For more information, see <LinkBase href="/get-started/create-a-new-app/#opening-the-app-on-your-phonetablet" openInNewTab>Open app on a device</LinkBase>.
56
57To see the web app in action, press <kbd>w</kbd> in the terminal. It will open the web app in the default web browser.
58
59Once it is running on all platforms, the project should look like this:
60
61<ImageSpotlight
62  alt="App running on an all platforms"
63  src="/static/images/tutorial/01-app-running-on-all-platforms.jpg"
64  style={{ maxWidth: 720 }}
65/>
66
67The text displayed on the app's screen above can be found in the **App.js** file which is at the root of the project's directory. It is the entry point of the project and is executed when the development server starts.
68
69## Up next
70
71We have created a new Expo project and are ready to develop our StickerSmash app. In the next chapter, we'll learn [how to build the app's first screen](/tutorial/build-a-screen).
72