docs: general fixes and overall changes (#7258)

* editing halfway

* edited second half

* adjust starter steps

* fix build

* typo fix
This commit is contained in:
Shahed Nasser
2024-05-07 18:00:28 +02:00
committed by GitHub
parent 8db62827ac
commit 327e446974
57 changed files with 872 additions and 1849 deletions
@@ -6,9 +6,9 @@ export const metadata = {
In this chapter, youll learn how to install and use the Next.js Starter storefront.
<Note title="Demo">
<Note type="soon">
Check out the demo [here](https://next.medusajs.com/).
The Next.js starter is currently in development to fully support Medusa v2.
</Note>
@@ -21,16 +21,17 @@ Check out the demo [here](https://next.medusajs.com/).
</Note>
1. Create a Next.js project using the [Next.js Starters repository URL](https://github.com/medusajs/nextjs-starter-medusa):
1. Clone the `feat/v2` branch of the [Next.js Starter](https://github.com/medusajs/nextjs-starter-medusa):
```bash
npx create-next-app -e https://github.com/medusajs/nextjs-starter-medusa my-medusa-storefront
git clone https://github.com/medusajs/nextjs-starter-medusa -b feat/v2 my-medusa-storefront
```
2. Change to the `my-medusa-storefront` directory and rename the template environment variable:
2. Change to the `my-medusa-storefront` directory, install the dependencies, and rename the template environment variable:
```bash
```bash npm2yarn
cd my-medusa-storefront
npm install
mv .env.template .env.local
```
@@ -8,6 +8,6 @@ In the next chapters, youll learn about building a storefront for your Medusa
## Storefronts in Medusas Architecture
Storefronts are built separately from the Medusa application. They interact with the Medusa application through the Store API Routes.
Storefronts are built separately from the Medusa application. They interact with the Medusa application through the Store API routes.
You have full freedom in how you choose to build your storefront. You can start with our Next.js starter storefront or build a storefront from scratch using your preferred framework or tech stack. Both of these approaches are explained in the next chapters.
You're free to choose how to build your storefront. You can start with our Next.js starter storefront or build a storefront from scratch using your preferred framework or tech stack. Both of these approaches are explained in the next chapters.
@@ -52,13 +52,7 @@ Products, carts, and orders are associated with a sales channel. If you dont
</Note>
### Create a Publishable API Key
You can create a publishable API key using either the [Medusa Admin dashboard](https://docs.medusajs.com/user-guide/settings/publishable-api-keys) or the [Admin API Routes](https://docs.medusajs.com/api/admin#publishable-api-keys).
### Use the Publishable API Key
Refer to the [Store API Reference](https://docs.medusajs.com/api/store#publishable-api-key) to learn how to use the publishable API key in your requests.
Publishable API keys are provided by the [API key commerce module](!resources!/commerce-modules/api-key).
---