An open API service indexing awesome lists of open source software.

https://github.com/krruzic/turtlefaucet

A faucet for the greatest cryptocurrency of all time (turtlecoin.lol) sitting at
https://github.com/krruzic/turtlefaucet

bitcoin cryptocurrency flask python turtlecoin

Last synced: 5 months ago
JSON representation

A faucet for the greatest cryptocurrency of all time (turtlecoin.lol) sitting at

Awesome Lists containing this project

README

          

Quickly thrown together faucet. Currently set to give out 1 TRTL a pop. Limiting is set to 3 per day.

## Running this
First make sure Turtlecoind is running and fully sync'd.
Then start `walletd` with these args:
`/path/to/walletd -w walletname -p walletpass -d`

`pip3 install -r requirements.txt`
You'll need to create a file called 'faucet.ini'.
The file should look like this:
```ini
[uwsgi]
module = wsgi:app
protocol=http
http-socket = :9090
master = true
processes = 1

vacuum = true

die-on-term=true

#environment
env=RECAPTCHA_PUBLIC_KEY={KEY_FROM_GOOGLE}
env=RECAPTCHA_PRIVATE_KEY=KEY_FROM_GOOGLE}
env=SECRET_KEY={random_string}
env=WTF_CSRF_SECRET_KEY={random_string}
env=FAUCET_ADDR={address_to_deposit_to}

#logging
logger = /path/to/errlog.log
re-logger = /path/to/reqlog.log
```

After that, run
```python
python3 -c 'from faucet import db;db.create_all()'
```
then `uwsgi --ini faucet.ini`. Make sure you have turtlecoind and simplewallet running.
I left in the google analytics because I couldn't find a way to add that at deployment. Enjoy :)