insight-ui-zcash/README.md

119 lines
3.9 KiB
Markdown
Raw Normal View History

2014-02-13 07:20:13 -08:00
# *insight*
2014-01-06 10:55:45 -08:00
2014-02-13 07:20:13 -08:00
*insight* is an open-source bitcoin blockchain explorer with complete REST
2014-02-19 15:49:11 -08:00
and websocket APIs. Insight runs in NodeJS, uses AngularJS for the
front-end and LevelDB for storage.
2014-02-10 17:40:16 -08:00
2014-02-19 15:49:11 -08:00
Check some screenshots and more details at [insight's project homepage](http://insight.bitcore.io).
2014-02-26 11:48:40 -08:00
*Insight* project is now splitted in two repositories. One for the [API](https://github.com/bitpay/insight-api) and for the front-end. This repository is for the front-end, which will install the API as a NPM dependency.
2014-01-06 10:55:45 -08:00
2014-01-07 04:43:04 -08:00
## Prerequisites
2014-01-06 13:16:28 -08:00
2014-02-13 07:20:13 -08:00
* **Node.js v0.10.x** - Download and Install [Node.js](http://www.nodejs.org/download/).
2014-02-12 04:58:13 -08:00
* **NPM** - Node.js package manager, should be automatically installed when you get node.js.
2014-01-07 04:43:04 -08:00
## Quick Install
2014-02-14 13:33:38 -08:00
Check the Prerequisites section above before installing.
To install Insight, clone the main repository:
2014-01-13 14:44:44 -08:00
$ git clone https://github.com/bitpay/insight.git && cd insight
2014-01-13 14:44:44 -08:00
2014-01-07 04:43:04 -08:00
Install dependencies:
$ npm install
2014-02-12 04:58:13 -08:00
Run the main application:
2014-02-26 12:54:03 -08:00
$ npm start
Then open a browser and go to:
2014-01-07 04:43:04 -08:00
2014-02-13 08:22:54 -08:00
http://localhost:3001
2014-02-12 04:58:13 -08:00
2014-03-18 13:31:20 -07:00
If *insight* reports problems connecting to **bitcoind** please check the CONFIGURATION section of
[insight-api README](https://github.com/bitpay/insight-api/blob/master/README.md). To set the
environment variables run something like:
$ INSIGHT_NETWORK=livenet BITCOIND_USER=user BITCOIND_PASS=pass INSIGHT_PUBLIC_PATH=public npm start
2014-02-12 04:58:13 -08:00
Please note that the app will need to sync its internal database
with the blockchain state, which may take some time. You can check
2014-03-18 13:33:09 -07:00
sync progress from within the web interface. More details about that process
on [insight-api README](https://github.com/bitpay/insight-api/blob/master/README.md).
2014-03-18 13:31:20 -07:00
2014-02-10 05:35:35 -08:00
2014-02-14 05:02:09 -08:00
## Development
2014-02-10 05:35:35 -08:00
2014-02-28 13:10:04 -08:00
To run insight locally for development mode:
Install bower dependencies:
2014-01-13 14:44:44 -08:00
2014-02-28 13:10:04 -08:00
```$ bower install```
2014-02-10 17:40:16 -08:00
2014-02-14 05:02:09 -08:00
To compile and minify the web application's assets:
2014-02-14 05:02:09 -08:00
```$ grunt compile```
2014-01-08 08:29:54 -08:00
There is a convinent Gruntfile.js for automation during editing the code
```$ grunt```
2014-03-20 10:06:05 -07:00
2014-03-20 10:30:06 -07:00
In case you are developing *insight* and *insight-api* toghether, you can do the following:
2014-03-20 10:06:05 -07:00
* Install insight and insight-api on the same path ($IROOT)
```
$ cd $IROOT/insight
$ grunt
```
in other terminal:
```
$ cd $IROOT/insight-api
$ ln -s ../insight/public
$ INSIGHT_PUBLIC_PATH=public node insight.js
```
```INSIGHT_PUBLIC_PATH=insight/public grunt```
at insight-api's home path (edit the path according your setup).
**also** in the insight-api path. (So you will have to grunt process running, one for insight and one for insight-api).
2014-02-14 05:02:09 -08:00
2014-02-28 13:10:04 -08:00
## Note
For more details about the *insight API* configs and end-point, just go to [insight API github repository](https://github.com/bitpay/insight-api) or read the [documentation](https://github.com/bitpay/insight-api/blob/master/README.md)
2014-01-15 04:38:27 -08:00
2014-02-28 13:10:04 -08:00
## Contribute
2014-01-10 14:55:16 -08:00
2014-02-28 13:10:04 -08:00
Contributions and suggestions are welcomed at [insight github repository](https://github.com/bitpay/insight).
2014-01-19 07:39:34 -08:00
2014-01-07 04:43:04 -08:00
## License
(The MIT License)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.