Skip to content

Sails.js REST interface for managing groups of Bitcoin miners using cgminer-api

Notifications You must be signed in to change notification settings

hashpanel/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hashware-api

NPM version Build status Dependency Status

Install Hashpanel

$ npm install hashpanel-api

Install Docker Services

1. Redis

$ docker run --restart=always --name hashpanel-redis -P -d sameersbn/redis:latest

2. Postgres

$ docker run --restart=always --name hashpanel-postgres -P -e POSTGRES_PASSWORD=postgres -d postgres
$ psql -U postgres -h 0 -p 49154 -c "create user hashpanel with password 'hashpanel'"
$ psql -U postgres -h 0 -p 49154 -c "create database hashpanel"
$ psql -U postgres -h 0 -p 49154 -c "alter database hashpanel owner to hashpanel"

Set Environment

.env

REDIS_URL=redis://:@localhost:49153
DATABASE_URL=postgres://postgres:postgres@localhost:49154/hashpanel

About

Sails.js REST interface for managing groups of Bitcoin miners using cgminer-api

Resources

Stars

Watchers

Forks

Packages

No packages published