- Create
.env
file at the root of the project and add all the environment variables specified here - Run
yarn migrate
to setup the latest migrations for the database
yarn start
All the migrations can be found at db/migrations
. The sale table migration can be found below
CREATE TABLE liteflow.sale(
id serial PRIMARY KEY,
transaction_hash TEXT UNIQUE NOT NULL,
amount INT NOT NULL,
collection_address VARCHAR(40) NOT NULL,
buyer_address VARCHAR(40) NOT NULL,
seller_address VARCHAR(40) NOT NULL,
token_id VARCHAR(40) NOT NULL,
quantity INT NOT NULL
);