Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duniter/ucoin-web
A sample webapp connecting to a ucoin node and displaying informations from it
https://github.com/duniter/ucoin-web
Last synced: 16 days ago
JSON representation
A sample webapp connecting to a ucoin node and displaying informations from it
- Host: GitHub
- URL: https://github.com/duniter/ucoin-web
- Owner: duniter
- Created: 2013-08-26T10:38:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-11T20:40:33.000Z (almost 9 years ago)
- Last Synced: 2024-04-08T20:05:00.336Z (9 months ago)
- Language: JavaScript
- Homepage: http://www.metab.ucoin.io/#/home
- Size: 1.11 MB
- Stars: 6
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ucoin-web
## Installation
### Node.js
ucoin-web is powered by Node.js v0.10+, so you need it installed first. Here is an example for Ubuntu installation:
```bash
$ sudo apt-get update
$ sudo apt-get install python-software-properties python g++ make
$ sudo add-apt-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs
```You can find the installation of Node.js for other distribution [on this GitHub document](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager).
### ucoin-web from git repository
And then, just install ucoin-web:
```bash
$ git clone [email protected]:c-geek/ucoin-web.git
$ cd ucoin-web && npm install
```And launch it:
```bash
$ node app.js
```### Configuration
#### Commande line parameters
```bash
$ node app.js --helpUsage: app.js [options]
Options:
-h, --help output usage information
-p, --port Local port to listen
-h, --host Local interface to listen
-H, --uchost Host of ucoin server
-P, --ucport Port of ucoin server
-a, --auth Enables authenticated mode
```For example:
```bash
$ node app.js -h 127.0.0.7 -p 4444 --uchost localhost --ucport 8081 -a
```Will launch the web interface on `http://127.0.0.7:4444/`, whose underlying uCoin server is `localhost:8081` with authenticated requests to uCoin server.
#### Configuration file
Just create a file `config.json` in your `conf/` folder with the following content:
```json
{
"uchost": "localhost",
"ucport": 8081,
"host": "localhost",
"port": 3000,
"auth": true
}
```And modify parameters according to your environment.
# License
This software is provided under [MIT license](https://raw.github.com/c-geek/ucoin/master/LICENSE).