docs: general fixes across documentation (#4248)
* docs: added details about the migration revert command * added a note about running postgres before the backend * added a link to typeorm's documentation * fix broken links * fixed section title * fixed admonitions
This commit is contained in:
@@ -38,7 +38,7 @@ Instead of using the default Medusa backend starter, you must use the [Contentfu
|
||||
In your terminal, run the following command to install the backend:
|
||||
|
||||
```bash
|
||||
medusa new medusa-contentful https://github.com/medusajs/medusa-starter-contentful
|
||||
npx @medusajs/medusa-cli@latest new medusa-contentful https://github.com/medusajs/medusa-starter-contentful
|
||||
```
|
||||
|
||||
This installs a new Medusa backend in the directory `medusa-contentful`.
|
||||
|
||||
@@ -86,7 +86,7 @@ You can use the Strapi plugin on an existing Medusa backend, however, existing d
|
||||
To create your Medusa backend, run the following command:
|
||||
|
||||
```bash
|
||||
medusa new medusa-backend
|
||||
npx @medusajs/medusa-cli@latest new medusa-backend
|
||||
```
|
||||
|
||||
### Configure your Backend
|
||||
@@ -107,13 +107,13 @@ You must then configure your backend to:
|
||||
After configuring the connection to the database, you must run migrations to add the necessary database schema definitions in your database. To do that, run the following command in the `medusa-backend` directory:
|
||||
|
||||
```bash
|
||||
medusa migrations run
|
||||
npx @medusajs/medusa-cli@latest migrations run
|
||||
```
|
||||
|
||||
You can optionally seed your database with demo data by running the `seed` command:
|
||||
|
||||
```bash
|
||||
medusa seed --seed-file=data/seed.json
|
||||
npx @medusajs/medusa-cli@latest seed --seed-file=data/seed.json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user