Ledger Management Dashboard
- Node 8.9 <= version < 9.0
- NPM v6.4+
- Docker v18.06+
- Docker-compose v1.18+
- Mongo v4.0+
Before start the api server
Add an environment file called
.envto the root folder of the project, with the required project settings and credentials. For a starter environment file, you can use this one:cp .env.dev .env
- Start all the dependencies
docker-compose -f docker-compose-dev.yml up -d
- Initialize the default user:
admin/passw0rd
docker exec -it dashboard-mongo mongo
use zigdb;
db.user.insert({username:'admin',password:'5c604fdbe7060760ab75d54c042d71f0e49e621a'});
- Start dashboard api server
npm install && npm run doc && npm run dev
- Check api docs
Swagger UI version visit localhost:8080.
JSON version visit localhost:8080/api-docs.
- Start Grafana, Prometheus and cAdvisor
cd build/monitoring
docker-compose up -d
Then you can visit localhost:9090 to explore the prometheus features.
- Setup Grafana
2.1. Visit localhost:3000 and login with admin/admin.
2.2. Import build/monitoring/grafana/dashboards/dashboard.json and select the default datasource which has been provisioned during the startup.
2.3. Enjoy your dashboard in the Cycle view mode.
If you want to know more about the monitoring, please follow the instructions here.
Dashboard API Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Dashboard API Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.