docs: redesigned code blocks (#2745)

* docs: redesigned code blocks to include titles

* docs: added a title where necessary
This commit is contained in:
Shahed Nasser
2022-12-08 18:52:54 +02:00
committed by GitHub
parent 8efae2dfcf
commit a57177ded5
60 changed files with 455 additions and 375 deletions
+6 -6
View File
@@ -6,7 +6,7 @@ This document will guide you through setting up your Medusa server in a few minu
Medusa supports Node versions 14 and 16. You can check which version of Node you have by running the following command:
```bash noHeader
```bash noReport
node -v
```
@@ -16,7 +16,7 @@ You can install Node from the [official website](https://nodejs.org/en/).
### 1. Install Medusa CLI
```bash npm2yarn noHeader
```bash npm2yarn noReport
npm install @medusajs/medusa-cli -g
```
@@ -28,13 +28,13 @@ If you run into any errors while installing the CLI tool, check out the [trouble
### 2. Create a new Medusa project
```bash noHeader
```bash noReport
medusa new my-medusa-store --seed
```
### 3. Start your Medusa server
```bash noHeader
```bash noReport
cd my-medusa-store
medusa develop
```
@@ -43,7 +43,7 @@ If you run into any errors while installing the CLI tool, check out the [trouble
After these three steps and in only a couple of minutes, you now have a complete commerce engine running locally. You can test it out by sending a request using a tool like Postman or through the command line:
```bash noHeader
```bash noReport
curl localhost:9000/store/products | python -m json.tool
```
@@ -51,7 +51,7 @@ curl localhost:9000/store/products | python -m json.tool
This command uses Python to format the result of the request better in your command line. If you don't want to use Python you can simply send a request without the formatting:
```bash noHeader
```bash noReport
curl localhost:9000/store/products
```