2018-10-19 22:00:29 +00:00
|
|
|
|
# Wownero Funding System
|
2018-06-26 21:48:25 +00:00
|
|
|
|
|
2018-10-19 22:00:29 +00:00
|
|
|
|
![whoop](https://i.imgur.com/xVS3UGq.png)
|
2018-06-26 21:48:25 +00:00
|
|
|
|
|
2018-10-19 22:00:29 +00:00
|
|
|
|
A simple Flask application for managing donations.
|
2018-06-26 21:48:25 +00:00
|
|
|
|
|
2018-10-19 22:00:29 +00:00
|
|
|
|
Example
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
[https://funding.wownero.com](https://funding.wownero.com)
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
Good luck with trying to get this to run! Some pointers:
|
|
|
|
|
|
|
|
|
|
#### Daemon
|
|
|
|
|
|
|
|
|
|
First make sure the daemon is up.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./wownerod --max-concurrency 4
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
#### Wallet RPC
|
|
|
|
|
|
|
|
|
|
Expose wallet via RPC.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./wownero-wallet-rpc --rpc-bind-port 45678 --disable-rpc-login --wallet-file wfs --password ""
|
2018-06-26 21:48:25 +00:00
|
|
|
|
```
|
2018-10-19 22:00:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Web application
|
|
|
|
|
|
|
|
|
|
Download application and configure.
|
|
|
|
|
|
|
|
|
|
```
|
2018-10-20 00:11:54 +00:00
|
|
|
|
sudo apt install libjpeg-dev libpng-dev python-virtualenv python3 redis-server postgresql-server postgresql-server-dev-*
|
2018-10-19 22:00:29 +00:00
|
|
|
|
git clone https://github.com/skftn/wownero-wfs.git
|
2018-10-20 00:11:54 +00:00
|
|
|
|
cd wownero-wfs
|
2018-06-26 21:48:25 +00:00
|
|
|
|
virtualenv -p /usr/bin/python3
|
|
|
|
|
source venv/bin/activate
|
2018-10-20 00:11:54 +00:00
|
|
|
|
pip uninstall pillow
|
2018-06-26 21:48:25 +00:00
|
|
|
|
pip install -r requirements.txt
|
2018-10-20 00:11:54 +00:00
|
|
|
|
CC="cc -mavx2" pip install -U --force-reinstall pillow-simd
|
2018-06-26 21:48:25 +00:00
|
|
|
|
cp settings.py_example settings.py
|
|
|
|
|
- change settings accordingly
|
2018-10-19 22:00:29 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Prepare a database in postgres and create an user for it.
|
|
|
|
|
|
|
|
|
|
Run the application:
|
|
|
|
|
|
|
|
|
|
```bash
|
2018-06-26 21:48:25 +00:00
|
|
|
|
python run_dev.py
|
|
|
|
|
```
|
|
|
|
|
|
2018-10-19 22:00:29 +00:00
|
|
|
|
Beware `run_dev.py` is meant as a development server.
|
|
|
|
|
|
2018-10-20 00:11:54 +00:00
|
|
|
|
When running behind nginx/apache, inject `X-Forwarded-For`.
|
|
|
|
|
|
2018-10-19 22:00:29 +00:00
|
|
|
|
### Contributors
|
2018-06-26 21:48:25 +00:00
|
|
|
|
|
2018-10-19 22:00:29 +00:00
|
|
|
|
- [camthegeek](https://github.com/camthegeek)
|
2018-06-26 21:48:25 +00:00
|
|
|
|
|
2018-10-19 22:00:29 +00:00
|
|
|
|
### License
|
2018-09-01 18:32:02 +00:00
|
|
|
|
|
|
|
|
|
© 2018 WTFPL – Do What the Fuck You Want to Public License
|