|
1
|
By default, passing the `--with-nextjs-starter` to the `create-medusa-app` command starts both the Medusa application at `localhost:9000` and the Next.js Starter storefront at `localhost:8000` once the installation finishes successfully. The Medusa Admin also opens in your default browser. |
|
2
|
|
|
3
|
If, while following along the setup process, you try to access the Next.js Starter Storefront and it's not working, try to run the storefront manually while the Medusa application is still running. |
|
4
|
|
|
5
|
To do that, first, change to the directory of the storefront. The directory name is `{project_name}-storefront`, where `{project_name}` is the name you chose for the project while running the `create-medusa-app` command. For example: |
|
6
|
|
|
7
|
```bash |
|
8
|
cd my-medusa-store-storefront |
|
9
|
``` |
|
10
|
|
|
11
|
Then, run the following command to start the storefront: |
|
12
|
|
|
13
|
```bash npm2yarn |
|
14
|
npm run dev |
|
15
|
``` |
|
16
|
|
|
17
|
The storefront runs on `localhost:8000` now. |