This project includes: API, Crawler, Submitter and Jobs of the Mina Bridge backend system
- Node v16.15
- pm2
- docker
- redis
yarn
You can find all env keys from the .env.example, copy them and create your own .env with your env values.
yarn build
Note: If you don't have Postgres or redis installed on your local machine, run:
docker-compose up -d
You can use the pm2
to run the project by running:
pm2 reload ecosystem.config.js
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
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}
If you have any issue with this repository, please feel free to contact our team