1. Introduction

This is backend project which interact with MetaMarket's smart contracts.
Production (BSC): https://metamarket.top
Staging (BSC testnet): https://testnet.metamarket.top

2. Requirements

Python 3.7 or higher.

3. How to run the project

  1. cd into the project and then run virtualenv venv

If you are using MacOS, Linux or Ubuntu

  1. Run source venv/bin/activate
  2. Run pip install -r requirements.txt
  3. Install Ganache and download BSC testnet network into your local computer by running python setup_ganache.py
  4. Run python manage.py migrate
  5. (optional) Run python manage.py createsuperuser
  6. Run python manage.py runserver

If you are using Windows

  1. If Windows, run venv\Scripts\activate
  2. Run pip install -r requirements_windows.txt
  3. Install Ganache and download BSC testnet network into your local computer by running python setup_ganache_windows.py
  4. Run python manage.py migrate
  5. (optional) Run python manage.py createsuperuser
  6. Run python manage.py runserver