Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shahednasser/medusa-marketplace-tutorial

Code for Medusa Marketplace Tutorial
https://github.com/shahednasser/medusa-marketplace-tutorial

Last synced: about 1 month ago
JSON representation

Code for Medusa Marketplace Tutorial

Awesome Lists containing this project

README

        

# Medusa Marketplace Tutorial

> :warning: this repository is deprecated and it's recommended to check out [this one](https://github.com/shahednasser/medusa-1.8-marketplace-tutorial) instead.

Code for Medusa Marketplace Tutorial using [Medusa Extender](https://github.com/adrien2p/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](https://github.com/shahednasser/medusa-marketplace) instead.

## Prerequisites

Before you run this code you'll need [PostgreSQL](https://www.postgresql.org/download/) and [Redis](https://redis.io/download) installed.

## Installation

After cloning the repository, install the dependencies:

```bash
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:

```bash
npm run seed
```

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

```bash
npm run build
```

Then run the migrations

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

## Running the Server

To run the server run the following command:

```bash
npm start
```