@hokid/transcan
Scan transactions and save on server
Last updated 2 years ago by hokid .
ISC · Original npm · Tarball · package.json
$ cnpm install @hokid/transcan 
SYNC missed versions from official npm registry.

Install

$ npm install -g @hokid/transcan

Usage

  1. Make directory for transcan
$ makedir transcan-example
$ cd transcan-example
  1. Create configuration file, for example, .transcan.config.js.

Put this in configuration file and replace placeholders.

module.exports = {
  tasks: [
    { name: 'BTC', scheduleTime: <CRON_SCHEDULIGN_FORMAT> },
    { name: 'ETH', scheduleTime: <CRON_SCHEDULIGN_FORMAT> }
  ],
  db: {
    host: <POSTGRES_HOST>,
    port: <POSTGRES_PORT>,
    user: <POSTGRES_USER>,
    password: <POSTGRES_PASSWORD>,
    database: <POSTGRES_DATABASE>
  },
  apiBase: <API_URL>,
  cacheFile: <NAME_FOR_CACHE_FILE>
}

  1. Run it:
$ transcan -c .transcan.config.js

Current Tags

  • 0.1.0                                ...           latest (2 years ago)

6 Versions

  • 0.1.0                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 6
Last Month 10
Dependencies (11)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |