Skip to content
NEAR blockchain explorer
JavaScript TypeScript Dockerfile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Feature/e2e (resolves #89) Oct 17, 2019
backend
frontend Fixed the server-side rendering of Nodes page (i.e. direct link) Nov 12, 2019
wamp Updated APIs to match nearcore 0.3 Sep 12, 2019
.editorconfig Setup project (#5) May 30, 2019
.gitattributes
.gitignore Implemented Transaction Details Page (#109) Oct 21, 2019
LICENSE
README.md
docker-compose.yml Implemented multinet support (resolves #110) Oct 31, 2019
package-lock.json fix the conflicts Jul 13, 2019
package.json Moved frontend files into subfolder (#23) Jun 28, 2019
spec.md Fix spec a bit more Jun 15, 2019

README.md

NEAR Blockchain Explorer

In development.

Setup

Docker-based Setup

Prerequisite:

  • Docker
  • Docker-Compose

Build Docker images:

$ docker-compose build

Run them:

$ docker-compose up

NOTE: You may want to run them in background, so just add --detach flag.

Initialize database:

$ docker-compose exec backend npx sequelize-cli db:migrate --env development-migration

Load some dummy data (just for the development):

$ docker-compose exec backend node loadDummyData.js

Now you can reach the services:

  • http://localhost:3000/ -- frontend
  • ws://localhost:8080/ws -- WAMP router (you don't need it unless you are a developer)

Development Q&A

Q: How to run the local development version of the frontend/backend?

A: It is recommended to use docker-compose to run all the services and then stop the one that you want to develop locally (docker-compose stop frontend). (Follow the execution instructions written in the relevant README file of the subproject)

Q: How to auto-format the source code on commit?

A: Use npm install from the root of the project, so it sets up the git hooks which automatically run prettier on every commit. (We wish we don't need to have the root package.json, but husky does not support subpackages nicely)

You can’t perform that action at this time.