Skip to content

Commit 63e259e

Browse files
authored
Merge pull request #226 from skycoin/develop
Merge develop to master
2 parents 5e4a8e5 + d64e6a3 commit 63e259e

File tree

89 files changed

+7163
-4530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+7163
-4530
lines changed

.travis.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,36 @@
11
language: go
22

33
go:
4-
- 1.8
5-
- 1.9
4+
- "1.8"
5+
- "1.9"
6+
- "1.10"
7+
8+
env:
9+
- SKYCOIN_ADDR=http://172.17.0.2:6420
10+
11+
services:
12+
- docker
13+
14+
addons:
15+
apt:
16+
sources:
17+
- google-chrome
18+
packages:
19+
- google-chrome-stable
20+
21+
before_install:
22+
- nvm install 8.9
623

724
install:
825
- go get -t ./...
926
- make install-linters
27+
- npm install
1028

1129
script:
1230
- make check
31+
- make build-ng
32+
- make check-ui
33+
34+
notifications:
35+
# https://github.com/kvld/travisci-telegram TravisCI Telegram Bot integration
36+
webhooks: https://fathomless-fjord-24024.herokuapp.com/notify

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
### Added
10+
11+
- Add support to ARM architecture in Docker Cloud builds
12+
13+
### Fixed
14+
15+
### Changed
16+
17+
### Removed
18+

CUSTOMIZATION.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The explorer is designed in such a way that it is possible to make simple custom
66

77
To simplify copying addresses with mobile devices, the explorer shows qr codes. The qr codes contain the addresses prefixed with the name of the coin, in this way: `skycoin:abcd...` (More information in this link: https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki). If needed, the `skycoin:` prefix can be changed by modifying the value of `QrConfig.prefix`, inside [app.config.ts](src/app/app.config.ts).
88

9+
## Search functionality
10+
11+
The explorer is integrated with the browser's search functionality. This means that the user can search for elements of the blockchain directly from the search functionality of the browser. For this to work properly, you must modify the [search.xml](src/search.xml) file. Simply replace the `https://explorer.skycoin.net/` prefix of all URLs with the URL where the browser will reside (it is not necessary to replace the text that may be to the right of that prefix). Also, replace the `ShortName` and `Description` as deemed necessary.
12+
13+
You can find more information about the file format in [opensearch-1-1-draft-6.md](https://github.com/dewitt/opensearch/blob/master/opensearch-1-1-draft-6.md)
14+
915
## Colors and general appearance
1016

1117
Most explorer colors and other general UI parameters are defined in [_variables.scss](src/assets/scss/_variables.scss). Making changes to that file is the quickest way to change the explorer appearance.

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,29 @@ install-linters: ## Install linters
4848
format: ## Formats the code. Must have goimports installed (use make install-linters).
4949
goimports -w explorer.go
5050

51+
check-ui: ## runs e2e tests connecting to a containerized node
52+
go run explorer.go &>/dev/null &
53+
sleep 10
54+
55+
docker volume create skycoin-data
56+
docker volume create skycoin-wallet
57+
chmod 777 $(PWD)/e2e/test-fixtures/blockchain-180.db
58+
59+
docker run -d --rm \
60+
-v skycoin-data:/data \
61+
-v skycoin-wallet:/wallet \
62+
-v $(PWD)/e2e/:/project-root \
63+
--name skycoin-backend \
64+
-p 6000:6000 \
65+
-p 6420:6420 \
66+
skycoin/skycoin:develop \
67+
-web-interface-addr 172.17.0.2 \
68+
-db-path=project-root/test-fixtures/blockchain-180.db \
69+
-disable-networking
70+
71+
npm run e2e-blockchain-180
72+
73+
docker stop skycoin-backend
74+
5175
help:
5276
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

README.md

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,41 @@
66

77
https://explorer.skycoin.net
88

9+
Skycoin Explorer is a tool to interact with Skycoin ecosystem.
10+
11+
You can check blocks, transactions and their states.
12+
13+
[https://explorer.skycoin.net](https://explorer.skycoin.net)
14+
15+
### Quick reference
16+
17+
- **Where to file issues**:
18+
[https://github.com/skycoin/skycoin-explorer/issues](https://github.com/skycoin/skycoin-explorer/issues)
19+
20+
# Table of Contents
21+
22+
- [Releases Notes](CHANGELOG.md)
23+
- [Installation](#installation)
24+
- [Requirements](#requirements)
25+
- [Usage](#usage)
26+
- [Run a skycoin node](#run-a-skycoin-node)
27+
- [Run the explorer](#run-the-explorer)
28+
- [Docker images](#docker-images)
29+
- [API documentation](#api-documentation)
30+
- [Development](#development)
31+
- [Compiling the angular frontend](#compiling-the-angular-frontend)
32+
- [Formatting](#formatting)
33+
- [Code Linting](#code-linting)
34+
- [Customization](#customization)
35+
- [Deployment](#deployment)
36+
37+
38+
# Installation
39+
940
## Requirements
1041

1142
```
12-
go>=1.8
43+
go>=1.10
1344
node>=v6.9.0
1445
npm>=3.10.10
1546
```
@@ -60,17 +91,9 @@ SKYCOIN_ADDR=http://127.0.0.1:3333 ./explorer
6091
make run-api
6192
```
6293

63-
### Docker images
64-
65-
```
66-
$ docker build -t skycoin/skycoint-explorer .
67-
$ docker run -p 8001:8001 skycoin/skycoin-explorer
68-
```
69-
70-
Access the explorer: [http://localhost:8001](http://localhost:8001).
94+
## Docker images
7195

72-
The `SKYCOIN_ADDR` and the `EXPLORER_HOST` environment variables can be passed
73-
to the running container to modify the default behavior.
96+
If you want to run Explorer on Docker refer to [Docker instructions](docker/images/README.md)
7497

7598
## API documentation
7699

angular.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"polyfills": "src/polyfills.ts",
1919
"assets": [
2020
"src/assets",
21-
"src/favicon.ico"
21+
"src/favicon.ico",
22+
"src/search.dev.xml"
2223
],
2324
"styles": [
2425
"src/assets/css/bootstrap.min.css",
@@ -46,6 +47,11 @@
4647
"replace": "src/environments/environment.ts",
4748
"with": "src/environments/environment.prod.ts"
4849
}
50+
],
51+
"assets": [
52+
"src/assets",
53+
"src/favicon.ico",
54+
"src/search.xml"
4955
]
5056
}
5157
}
@@ -122,6 +128,19 @@
122128
}
123129
}
124130
}
131+
},
132+
"skycoin-explorer-e2e-blockchain-180": {
133+
"root": "",
134+
"sourceRoot": "",
135+
"projectType": "application",
136+
"architect": {
137+
"e2e": {
138+
"builder": "@angular-devkit/build-angular:protractor",
139+
"options": {
140+
"protractorConfig": "./protractor-blockchain-180.conf.js"
141+
}
142+
}
143+
}
125144
}
126145
},
127146
"defaultProject": "skycoin-explorer",

dist/0.4ff8f23d9b9631142fe3.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/1.b2f032c505a19c32b77a.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)