Local deployment
This page describes how to install the SeaDex onyour laptop

Requirements

Project is using Docker. Install Docker Desktop and Docker Compose. Once its done, Login into your Login through your terminal in your computer:
Bash
1
$ docker login
Copied!
Before you run the containers, you should create .env file in the root folder of Seadex:
Add to .env two following variables:
~/seadex/.env
1
PRIVKEY=<moonbeam alpha testnet key>
2
PRIVKEY_MOONRIVER=<moonriver deployer key>
Copied!
Now, you can run the docker containers:
1
$ docker-compose up -d
Copied!
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
1
$ docker exec -it seadex-contracts bash
Copied!
1
$ docker exec -it seadex-interface bash
Copied!
1
$ docker exec -it seadex-sdk bash
Copied!
Inside the container all of them follow the same procedure to initialize:
1
npm i
2
npm start
Copied!
Last modified 1mo ago
Copy link
Contents
Requirements