Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.59 KB

File metadata and controls

60 lines (38 loc) · 1.59 KB

Medusa v2 Example: Re-Order

This directory holds the code for the Re-Order Tutorial.

You can either:

Prerequisites

Installation

  1. Clone the repository and change to the re-order directory:
git clone https://github.com/medusajs/examples.git
cd examples/re-order

2. Rename the .env.template file to .env.

3. If necessary, change the PostgreSQL username, password, and host in the DATABASE_URL environment variable.

4. Install dependencies:

yarn # or npm install

5. Setup and seed the database:

npx medusa db:setup
yarn seed # or npm run seed

6. Start the Medusa application:

yarn dev # or npm run dev

Refer to the More Resources for OpenAPI Specs of custom API routes.

Copy into Existing Medusa Application

If you have an existing Medusa application, copy the following directories and files into your project:

  • src/api/store
  • src/workflows

More Resources