/medusa-marketplace-tutorial

Code for Medusa Marketplace Tutorial

Primary LanguageTypeScript

Medusa Marketplace Tutorial

⚠️ this repository is deprecated and it's recommended to check out this one instead.

Code for Medusa Marketplace Tutorial using Medusa Extender.

This includes the full Medusa server. If you want to install the marketplace into an existing Medusa server, please check out the Medusa Marketplace plugin instead.

Prerequisites

Before you run this code you'll need PostgreSQL and Redis installed.

Installation

After cloning the repository, install the dependencies:

npm i

Configuration

Copy .env.example to .env and add your database and Redis configurations as necessary.

Seed and Migrate Database

Run the following command to seed the database:

npm run seed

Before running migrations, make sure to run the build command:

npm run build

Then run the migrations

./node_modules/.bin/medex migrate --run

Running the Server

To run the server run the following command:

npm start