Local deployment

This page describes how to install the SeaDex onyour laptop


Project is using Docker. Install Docker Desktop and Docker Compose. Once its done, Login into your Login through your terminal in your computer:

$ docker login

Before you run the containers, you should create .env file in the root folder of Seadex:

Add to .env two following variables:

PRIVKEY=<moonbeam alpha testnet key>
PRIVKEY_MOONRIVER=<moonriver deployer key>

Now, you can run the docker containers:

$ docker-compose up -d

Run the command docker-compose in the root folder.

Once its done, visit every docker container that you will see.

docker-compose ps

In order to edit the containers, visit the container:

Seadex Contracts
Seadex Interface
Seadex SDK
Seadex Contracts
$ docker exec -it seadex-contracts bash
Seadex Interface
$ docker exec -it seadex-interface bash
Seadex SDK
$ docker exec -it seadex-sdk bash

Inside the container all of them follow the same procedure to initialize:

npm i
npm start