Skip to content

sotatek-dev/multichain-bridge-backend

Repository files navigation

Mina Bridge Backend

Table of Contents

General Information

This project includes: API, Crawler, Submitter and Jobs of the Mina Bridge backend system

Prerequisites

  • Node v16.15
  • pm2
  • docker
  • redis

Installation

Install dependencies

yarn

Prepare an .env file

You can find all env keys from the .env.example, copy them and create your own .env with your env values.

Build project

yarn build

Start project

Note: If you don't have Postgres or redis installed on your local machine, run:

docker-compose up -d

Using pm2

You can use the pm2 to run the project by running:

pm2 reload ecosystem.config.js

Start manually

You can also start the project manually by running these below commands:

Start the api

yarn start

or start in dev mode:

yarn start:dev

Start the submitter

yarn console product-submitter

Start the crawler provider

yarn console provider

Start the crawler consumer

yarn console consumer

Start the submitter

yarn console product-submitter

Start the clean unused media job

yarn console clean-unused-media

DB Migration commands:

yarn migration:create {migrationName}
yarn migration:run
yarn migration:revert

Note: Before running migration, please run:

yarn build

To seed data, run:

yarn seed:run

or

yarn seed:run --name {SeederName}

Support

If you have any issue with this repository, please feel free to contact our team

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published