useradd -m -G docker -s /bin/bash nerochan # omit docker group if running without it
# sudo into nerochan user
sudo -u nerochan bash
cd ~/
# Clone the repo
git clone https://github.com/lalanza808/nerochan
# Setup secrets
cp env-example .env
# Build and run monero-wallet-rpc
make up # uses docker-compose to build a container image which runs ./bin/run_wallet.sh (monero-wallet-rpc)
# Install Python dependencies for Flask app
make setup
# Initialize the database based on nerochan/models.py (default goes to ./data/sqlite.db)
make init
# Run Gunicorn production web service
make prod
# Register new user on the site
# Make user an admin via CLI
./manage.py add_admin $HANDLE
```
If everything worked as intended, you should have Gunicorn running in the background on port 4000 as `nerochan` user, with Nginx config accepting requests for your $DOMAIN, proxying requests to Gunicorn. You'll have a SQLite database keeping all the relational app data somewhere you've defined (default is app repo ./data/sqlite.db), and a filesystem for future uploads from your artists. You'll have an administrator within the application's /admin interface for managing the system.
To process tips, run the following (setup a cron task):