GithubHelp home page GithubHelp logo

jqk6 / hive-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hivewallet/hive-js

0.0 2.0 0.0 10.94 MB

Hive digital currency wallet

Home Page: http://www.hivewallet.com

License: GNU General Public License v2.0

JavaScript 77.91% CSS 20.01% HTML 1.99% Shell 0.09%

hive-js's Introduction

hive-js

Work in progress

Development

Grab the source

git clone [email protected]:hivewallet/hive-js.git
cd hive-js
npm install

Setup CouchDB

brew install couchdb

Enable CORS

add the following config in /usr/local/etc/couchdb/local.ini:

[httpd]
enable_cors = true

[cors]
credentials = true
origins = http://localhost:8080
headers = accept, authorization, content-type, origin

If you want to be able to access the app from a mobile device on your local network, remember to add your host machine IP or alias to the cors origins list.

origins = http://localhost:8080, http://192.168.1.109:8080, http://alice-computer.local:8080

Start CouchDB

# start couchdb upon login
ln -sfv /usr/local/opt/couchdb/*.plist ~/Library/LaunchAgents
# kick it off
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.couchdb.plist
open http://127.0.0.1:5984/_utils/index.html

Click on the bottom link "fix this" to create an admin user, say:

username: admin
password: password

Profit

DB_HOST=127.0.0.1 DB_PORT=5984 DB_USER=admin DB_PASSWORD=password COOKIE_SALT=secret PROXY_URL=https://hive-proxy.herokuapp.com?url= npm run dev
open http://localhost:8080

Optional environment variables:

NODE_ENV        # default to nothing, should be `production` in prod
PROCESS_COUNT   # default to 4. If your prod box has limited resources, reduce it.

Live Reload (Optional)

This project has js & css live reload setup. If you wish to use it to boost your productivity, head over to chrome store and download the LiveReload extension. After turning it on, you'd never need to hit the refresh button anymore.

Testing deployment inside Vagrant

  1. Install Vagrant
  2. symlink the playbook file into place: ln -s path/to/ansible/repo provisioners (Windows users can add directory to %PATH%)
  3. vagrant up or vagrant reload --provision

Deploy to Heroku

After all the regular heroku setup and hive-js setup as layed out above, install the heroku-hive-deploy plugin:

# one-time install
plugins:install https://github.com/hone/heroku-hive-deploy.git

# deploy from your local hive-js dir:
heroku deploy:hive `pwd`

# alternatively, you can also deploy from a git uri:
heroku deploy:hive <git uri>

Contributing

Instructions

  1. Fork the repo
  2. Push changes to your fork
  3. Create a pull request

Pull requests are very welcome. If you want to send us any code, try your best to adhere to our coding guidelines:

Running the test suite

# run both server and client tests
DB_HOST=127.0.0.1 DB_PORT=5984 DB_USER=admin DB_PASSWORD=password COOKIE_SALT=secret npm test

# just server
DB_HOST=127.0.0.1 DB_PORT=5984 DB_USER=admin DB_PASSWORD=password COOKIE_SALT=secret npm run test-server

# just client
npm run test-client

Donation

If you like Hive, you can also send us donations in BTC to 142m1MpXHhymF4aASiWwYohe1Y55v5BQwc

License

Hive is released under GNU General Public License, version 2 or later.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

hive-js's People

Contributors

weilu avatar haustraliaer avatar jenbennings avatar mackuba avatar tgerring avatar mattlenz avatar genecyber avatar pm47 avatar

Watchers

jqk6 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.