MediBloc Explorer works with panacea-core.
To run MediBloc Explorer following resources are required.
-
Node.js v10.13.0 or higher (https://nodejs.org/)
-
Yarn v1.9.2 (https://yarnpkg.com/en/docs/install)
-
panacea-core v1.0.0 (https://github.com/medibloc/panacea-core) - You need to follow all instructions in the document.
git clone https://github.com/medibloc/panacea-core.git cd panacea-core make
-
Clone the MediBloc Explorer repository and run.
git clone https://github.com/medibloc/explorer.git cd explorer cd client && yarn install cd ../server && yarn install
MediBloc Explorer Server uses Mysql as Backend Storage
Install & Configure Mysql
General : https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/
Mac : https://github.com/rajivkanaujia/alphaworks/wiki/Install-MySQL-using-Homebrew
Default database name is "medi_explorer". You can change database name or host in server/config/default.js
. Create this database with mysql command-line.
And then, You must configure ENVIRONMNET VARIABLES with your DB username & password
export EXPLORER_DB_USERNAME={username}
export EXPLORER_DB_PASSWORD={password}
Then,
cd server && yarn syncdb && yarn start
The server/config/default.js
file contains configuration settings for MediBloc Explorer Server.
To connect with custom MediBloc blockchain, blockchain.url should be set.
// you can set this endpoint to your blockchain.
const endpoint = 'localhost';
MediBloc Explorer Client is using Webpack.
If you want to watch all the changes of the code in real time, run the following command. It will run the MediBloc Explorer on the port 8080(http://localhost:8080).
yarn start
To generate the minified files, run the following command.
yarn build
Copyright 2018 MediBloc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.