A news redaction app for adelante.cu:
You need yarn and node >= 12
git clone https://github.com/ybenitezf/newswriter
cd newswriter
python3 -m venv env
. env/bin/activate
make devAfter changes make a new dist release with:
$ bump2version patch # possible: major / minor / patch
$ git push
$ git push --tagsmake testOr with coverage
make coveragepython3 -m venv env
. env/bin/activate
pip install https://github.com/ybenitezf/newswriter/releases/download/v0.0.5/newswriter-0.0.5-py2.py3-none-any.whlYou need to configure the instance, either by environment variables or a .env file:
SECRET_KEY: application secret key, should be a random stringSQLALCHEMY_DATABASE_URI: the database to use, see database urls in SQLAlchemy documentation site. Defaults to SQLite andappdb.dbin the instance folderUPLOAD_FOLDER: directory to store the users uploads, should be a full path, defaults to instalce foler +/uploadsINDEX_BASE_DIR: directory to store indexing data for the searches
After run the databases upgrade
flask deploy db-upgradepyinstaller --onefile --add-data 'newswriter/templates:newswriter/templates' --add-data 'newswriter/static:newswriter/static' --add-data 'newswriter/migrations:newswriter/migrations' --hiddenimport=newswriter.config newswritercli.py