Giter Club home page Giter Club logo

faucet's Introduction

Installation

$ git clone https://github.com/hippich/Faucet.git
$ cd Faucet
$ git submodule init 
$ git submodule update
$ perl Makefile.PL
$ make installdeps

DB

Install SQLite3 DB and import schema into faucet.db:

sqlite3 faucet.db < schema.sql

Configuration

Copy supplied sample config file faucet_sample.conf to faucet.conf and edit it. Make sure to include correct login/password to bitcoind, keys for reCaptcha and AddThis.

You will need to specify full path to SQLite3 DB file. (Or you might want to configure it to use MySQL/PostgreSql DB)

Also for Facebook authentication you will need to register new application at http://www.facebook.com/developers/ and use obtained application and secret IDs in this config file.

Run development server

Install Catalyst::Devel and run script/faucet_server.pl to test the application.

cpanm Catalyst::Devel
FAUCET_DEBUG=1 ./script/faucet_server.pl -r

Deployment under Apache

Enable FastCGI module:

a2enmod fastcgi 

In /etc/apache2/sites-available/faucet.conf:

FastCgiServer /home/faucet/Faucet/faucet_fastcgi.pl -processes 2

<VirtualHost *:80>
  ServerName faucet.example.com
  DocumentRoot  /home/faucet/Faucet/root
  Alias /static /home/faucet/Faucet/root/static
  Alias / /home/faucet/Faucet/script/faucet_fastcgi.pl/
</VirtualHost>

Enable newly created virtual host config:

a2ensite faucet.conf 

Restart Apache:

/etc/init.d/apache2 restart 

Installation notes

  • Catalyst::TraitFor::Controller::reCAPTCHA

    For me it failed on one of tests so I had to force install it via:

    $ cpan -f Catalyst::TraitFor::Controller::reCAPTCHA

Submitting patches

This is very early code release and I expect to have some bugs and/or missing essential features. Please fork project on GitHub, fix issue and submit pull request back to merge into main tree.

faucet's People

Contributors

hippich avatar

Stargazers

 avatar Samuel Safahi avatar Aliyul Erfan avatar  avatar Raghav Gupta avatar  avatar  avatar Osintdawg avatar  avatar  avatar

Watchers

 avatar James Cloos avatar Tjaden Hess 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.