|
3 months ago | |
---|---|---|
bin | 5 months ago | |
doc | 5 months ago | |
project_amber | 3 months ago | |
.dockerignore | 5 months ago | |
.drone.yml | 3 months ago | |
.gitignore | 6 months ago | |
.pylintrc | 6 months ago | |
Dockerfile | 5 months ago | |
LICENSE.txt | 6 months ago | |
README.md | 3 months ago | |
docker-compose.yml | 5 months ago | |
requirements.txt | 3 months ago | |
setup.cfg | 6 months ago | |
setup.py | 3 months ago |
This is the backend app of Project Amber, a task list app.
This is a basic Flask/SQLAlchemy app that takes care of syncing tasks between devices.
The config file is a JSON file that is loaded from either ./config.json
or
/etc/amber.json
, whichever is found first.
Example config:
{
"database": "sqlite:///file.db", // SQLAlchemy database URI
// see https://docs.sqlalchemy.org/en/13/core/engines.html#database-urls
"allow_signup": false, // whether to allow /api/signup or not
"loglevel": 0, // 0: errors, 1: warnings, 2: info
"domain": "https://your.domain.tld" // full domain with HTTPS
// needed for CORS
}
If there are environment variables AMBER_DATABASE
/ AMBER_ALLOW_SIGNUP
/
AMBER_LOGLEVEL
, AMBER_DOMAIN
set, the program will respect them and use
over the values provided with the config file.
This app directly depends on flask
, flask-sqlalchemy
, flask-cors
, and
bcrypt
.
The Dockerfile included with the project assumes that:
If you have to/prefer to use MariaDB, etc, you’ll have to add the necessary Python packages to the Docker image by hand.
See LICENSE.txt.