Eneko Illarramendi
1bc5e144d3
refactor: clean up __init__ file following some Flask conventions
Flask extensions are loaded in a way that makes them easily reusable by blueprints.
In this commit we are also adding `environs` to manage .env and settings:
breaking changes!
- FLASK_APP=lnbits.app
- LNBITS_ALLOWED_USERS needs to be empty now to allow all users (NOT "all")
4 years ago
Eneko Illarramendi
6b33f150c6
fix: revert default python version to 3.7 in Pipfile, closes #85
But tests will be run on both 3.7 and 3.8 as we want to support >= 3.7
4 years ago
Eneko Illarramendi
a651f747ac
chore: remove `gunicorn` and `gevent` from minimum requirements
It is now up to the user to install these (or other) for production deployment.
More info: https://flask.palletsprojects.com/en/1.1.x/tutorial/deploy/#run-with-a-production-server
4 years ago
Eneko Illarramendi
0d0e00e699
chore: update Pipfile
4 years ago
Eneko Illarramendi
e01de0eae5
chore: update requirements (but lock `gevents`)
`gevents` has been locked to avoid myNode installation problems.
5 years ago
Eneko Illarramendi
8ea72c9934
feat: add CORS headers
5 years ago
Eneko Illarramendi
2c5e539795
refactor: make some wallet dependencies optional
5 years ago
Eneko Illarramendi
178fe65fb2
test: configure Travis for CI
5 years ago
Eneko Illarramendi
d917feeb02
feat: prepare for deploying to Dokku
5 years ago
Eneko Illarramendi
94e524bf4c
chore: clean requirements
5 years ago
Eneko Illarramendi
dd23b20090
chore: various tweaks
5 years ago
Eneko Illarramendi
4397a6cab3
feat: use `cerberus` schemas to validate POST data
5 years ago
Eneko Illarramendi
8dc2143080
chore: update requirements
5 years ago
Eneko Illarramendi
49addb8d56
refactor: breaking bad
5 years ago
Eneko Illarramendi
f98a5040ac
refactor: decorators, models and more broken bits
5 years ago
Eneko Illarramendi
f10585abe1
chore: update requirements
5 years ago
Eneko Illarramendi
21a6958458
fix: minor issues
5 years ago
Eneko Illarramendi
3d3632a06f
refactor: add some dev files and `black` original code
Original server code has been moved to __init__ file, so we can
work on `lnbits` as a package.
5 years ago