starting to setup platform subs
parent
6681315128
commit
5721eaf054
@ -1,2 +1,6 @@
|
||||
# lza-quart-app
|
||||
Template project for Quart (Python/Flask) applications.
|
||||
# xmrbackers
|
||||
|
||||
That's the name for now. The intention is to provide a secure, although centralized (for now) web service for hosting private content and allowing subscribers to view with subscriptions paid in Monero (XMR).
|
||||
|
||||
It's intended to provide any sort of digital content experience - text, images, videos, streams, and have all the robust crypto mechanics for authenticating and validating transactions.
|
||||
|
||||
|
@ -1,8 +1,16 @@
|
||||
from xmrbackers.factory import create_app
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from os import environ
|
||||
|
||||
from xmrbackers import create_app
|
||||
|
||||
|
||||
app = create_app()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# print('running')
|
||||
# environ['QUART_SECRETS'] = 'config.py'
|
||||
# environ['QUART_DEBUG'] = '1'
|
||||
# environ['QUART_ENV'] = 'development'
|
||||
app.run(debug=True, use_reloader=True)
|
||||
|
@ -0,0 +1,30 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Become a Creator</h1>
|
||||
<p>
|
||||
First time creators will pay a flat rate of {{ new_fee_xmr }} XMR. </br>
|
||||
Please send fees to the platform wallet below and provide your <code>tx_hash</code> and <code>tx_key</code> in the form below to initiate your platform subscription.
|
||||
</p>
|
||||
<p>Platform Wallet: {{ config.PLATFORM_WALLET }}</p>
|
||||
|
||||
<form method="POST" action="">
|
||||
{% for f in form %}
|
||||
{% if f.name == 'csrf_token' %}
|
||||
{{ f }}
|
||||
{% else %}
|
||||
<div class="form-group">
|
||||
{{ f.label }}
|
||||
{{ f }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<ul>
|
||||
{% for field, errors in form.errors.items() %}
|
||||
<li>{{ form[field].label }}: {{ ', '.join(errors) }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<input type="submit" value="Confirm" class="btn btn-link btn-outline btn-xl">
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
{% include 'includes/head.html' %}
|
||||
<body>
|
||||
{% include 'includes/header.html' %}
|
||||
{% block content %}{% endblock %}
|
||||
{% include 'includes/footer.html' %}
|
||||
{% include 'includes/scripts.html' %}
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue