@neotracker/core
NEO Tracker external api.
Last updated 7 months ago by afragapane .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @neotracker/core 
SYNC missed versions from official npm registry.

NEO Tracker

CircleCI PRs Welcome

NEO Tracker is a NEO blockchain explorer and wallet.

Contributing

Welcome to the NEO Tracker community! We're always looking for more contributors and are happy to have you. Documentation on how to contribute can be found here.

Environment Setup

The following instructions for how to setup your development environment for NEO Tracker are known to work on Mac, but should work on any Unix-like system.

Requirements

Start a NEO•ONE private network

NEO Tracker is best developed against a private network, which we can setup easily with NEO•ONE.

  • yarn install (install dependencies, including @neo-one/cli)
  • yarn neo-one start network (starts a private network)

By default, NEO•ONE will create a private network with the RPC url http://localhost:9040/rpc, but this can be configured in a NEO•ONE configuration file. Note for this purpose, only the network option is relevant.

Start NEO Tracker

  • yarn install (install dependencies)
  • yarn develop (starts a watched instance of NEO Tracker for development)

By default, yarn develop sets up a SQLite database in the neotracker root directory. If you'd prefer to work with Postgres 10.3, this and other options can be configured in a .neotrackerrc file. See below for the full list of configurable options.

Setup Postgres

If you'd like to use Postgres 10.3, here are some instructions for getting started.

We will use the $PGDATA environment variable in the following examples. You may set this variable with export PGDATA=<directory to store database> if it's not set. For example, on Mac you can use the default data directory with export PGDATA=/usr/local/var/postgres

  • initdb $PGDATA (initialize the data directory)
  • pg_ctl -D $PGDATA start (start postgres)
  • createdb neotracker_priv (create the database for NEO Tracker)

To connect this database with neotracker, in the .neotrackerrc file, set dbClient to pg and dbPort to the port the postgres server was started on (defaults to 5432).

General Tips

  • To reset the local database, simply run yarn develop --resetDB.

Options

The full list of configurable options in the .neotrackerrc file. These can be added to the file or passed in as cli arguments.

{
  "type": "all", Components to run: "all" | "scrape" | "web"
  "port": 1340, // Port the website will listen on
  "network": "priv", // NEO network to run against
  "ci": false, // Running as part of continuous integration
  "prod": false, // Compile for production
  "nodeRpcUrl": "http://localhost:9040/rpc", // NEO•ONE Node RPC URL
  "dbClient": "sqlite3", // Database Client - "sqlite3" or "pg"
  "dbFileName": "db.sqlite", // Database file - only for SQLite
  "dbHost": "localhost", // Database host - only for Postgres
  "dbPort": 5432, // Database port - only for Postgres
  "dbUser": undefined, // Database username - only for Postgres
  "dbPassword": undefined, // Database password - only for Postgres
  "database": "neotracker_prv", // Database name
  "resetDB": false // Resets database
}

License

NEO Tracker is MIT licensed.

Current Tags

  • 1.4.0-alpha.1                                ...           alpha (20 days ago)
  • 1.3.1-alpha.0                                ...           latest (7 months ago)

22 Versions

  • 1.4.0-alpha.1                                ...           20 days ago
  • 1.4.0-alpha.0                                ...           25 days ago
  • 1.3.1-alpha.0                                ...           7 months ago
  • 1.3.1                                ...           7 months ago
  • 1.3.0                                ...           8 months ago
  • 1.2.0                                ...           8 months ago
  • 1.0.15                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 26
Dependencies (85)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |