Skip to content

Commit

Permalink
Create .gitignore .npmignore
Browse files Browse the repository at this point in the history
- updated README and .gitignore
  • Loading branch information
pangz-lab committed Apr 27, 2024
1 parent 042dc6f commit f8f6c0c
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 8 deletions.
50 changes: 50 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# from https://github.com/github/gitignore/blob/master/Node.gitignore
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
*.swp
tags
pids
logs
results
build

node_modules

# extras
*.swp
*.swo
*~
.project
peerdb.json

npm-debug.log
.nodemonignore

.DS_Store
public/lib/*
!public/lib/zeroclipboard/ZeroClipboard.swf
db/txs/*
db/txs
db/testnet/txs/*
db/testnet/txs
db/blocks/*
db/blocks
db/testnet/blocks/*
db/testnet/blocks

public/js/angularjs-all.js
public/js/main.js
public/js/vendors.js

public/css/main.css

README.html
po/*
!po/*.po
bower_components
39 changes: 39 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
*.swp
tags
pids
logs
results
build

node_modules

# extras
*.swp
*.swo
*~
.project
peerdb.json

npm-debug.log
.nodemonignore

.DS_Store
db/txs/*
db/txs
db/testnet/txs/*
db/testnet/txs
db/blocks/*
db/blocks
db/testnet/blocks/*
db/testnet/blocks

README.html
k*
33 changes: 26 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
Prerequisite:
1. Node.js
2. npm
3. grunt
3. bower

# Verus Explorer UI
This is a new Verus Coin Web Explorer.
UI is originally based from `insight-ui-komodo` redesigned to work on the new VerusExplorer API.
# Prerequisite:
1. `nodejs` - `v20.4`
2. `npm` - `v9.7`
3. `grunt-cli` - `v1.4.3`
3. `bower` - `v1.8.14`
> Lower version of `grunt-cli` and `bower` might also work but not 100% guaranteed.
# Development
```bash
npm install
Expand All @@ -29,7 +32,23 @@ Compile the project
grunt compile
```

Run to enable hotreload
Run to enable hotreload.
Leave it running while making your changes.
```bash
grunt
```

# Extras
## Optional
Execute the script if you want to see the UI running independently.
<br>This is an optional setup used only during the development.
<br>Feel free to use other alternatives.

<b>Requirement</b>
- [`php`](https://www.php.net/manual/en/features.commandline.webserver.php) - `v5.4+`

<br><i>Check `verus-explorer-setup` repo to run the necessary setup.</i>

```bash
./start_server.sh
```
3 changes: 2 additions & 1 deletion public/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
<div id="search-form-mobile" class="visible-xs" data-ng-include src="'views/includes/search.html'"></div>

<h1 translate>Latest Blocks</h1>
<div class="alert alert-warning" data-ng-show="cachedData.visible">
<div class="alert alert-warning fader" data-ng-show="cachedData.visible">
<strong>Info:</strong> Showing previously loaded blocks.
<i>Missed <b> <a href="/block/{{cachedData.missedBlocks.start}}">{{cachedData.missedBlocks.start}}</a></b>
<span data-ng-show="cachedData.missedBlocks.diff > 0"> to
<b><a href="/block/{{cachedData.missedBlocks.end}}">{{cachedData.missedBlocks.end}}</a></b>
</span>
</i>
</div>

<table class="table table-hover table-striped" style="table-layout: auto">
<thead>
<tr>
Expand Down

0 comments on commit f8f6c0c

Please sign in to comment.