|
|
依赖环境:
Nodejs
Mongodb
Nu 客户端
安装指南:
Installation
- 下载并安装钱包 Wallet NuBits
- unzip,install and launch nu.exe to sync all blocks (安装后需同步完区块链)
- 安装 Node.js
- 安装 MongoDB
- a replica set is needed to keep track of changes in db.
- use mongod [backcolor=rgba(0, 0, 0, 0.0392157)]--replSet ; Note: [backcolor=rgba(0, 0, 0, 0.0392157)]--auth and [backcolor=rgba(0, 0, 0, 0.0392157)]bind_ip=127.0.0.1 are recommended configurations
- Clone the NuExplorer repo to the server you want to deploy it on.
- Load dependencies with [backcolor=rgba(0, 0, 0, 0.0392157)]sudo npm install.
- Copy the [backcolor=rgba(0, 0, 0, 0.0392157)]mongo-oplog-watcher folder into [backcolor=rgba(0, 0, 0, 0.0392157)]node_modules
- Adjust mongodb connection urls according to your mongodb setup
- connection urls are located in [backcolor=rgba(0, 0, 0, 0.0392157)]server.js, and at the top of each [backcolor=rgba(0, 0, 0, 0.0392157)]/public/app/api/*_api.js scripts
- From the command line, invoke [backcolor=rgba(0, 0, 0, 0.0392157)]node server.js to launch the application.Open any web browser and enter [backcolor=rgba(0, 0, 0, 0.0392157)]localhost:800 in the url.
来源:https://github.com/JetJet13/NuExplorerOS |
|