Skip to content
 
 

Repository files navigation

aelf-scan-mysql

A mysql extension for block scanning

Based on aelf-block-scan

Here is a npm package aelf-block-scan which this project is based on. Read the documentations of aelf-block-scan.

How to start

Installation

yarn or npm i

  • install, configure and keep mysql and redis server running in localhost
  • use mysql create a database named aelf_main_chain
  • run ./db/init_sql.sh script

Development

read and add your own configs in config.dev.js, especially the mysql and redis connection configs, scan.host is also noteworthy.

npm run dev

and a pm2 process aelf-scan-mysql was started to running the scanning and sql operations, you need to concern

Production

read and add your own configs in config.prod.js, especially the sql config

npm start

Remember don't commit and push your sql config and password

PM2 can be used to stop, start, restart, monitor the process aelf-scan-mysql.

About

A mysql extension for block scanning

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages