Dummy Meuporg web frontend.
Setup with:
pip install -e .
Set environment variables:
FLASK_APP=dummyweb
SQLALCHEMY_DATABASE_URI=sqlite:////path/to/database.db"
DUMMY_ACCOUNT_DIR=/path/to/accounts_directory
Run the server with:
python -m flask run
install Python (python-3.7.0) ;
make a virtual environment from windows cmd :
pip install virtualenvwrapper-win
mkvirtualenv dummyweb
“Envs” folder has been created in your personal user’s folder with your new virtual environment.
For deactivate it:
deactivate
For activate it:
workon dummyweb
Activate the virtual environment
Clone our project https://github.com/dummymeuporg/dummyweb.git
Install the project in editable mode (i.e. setuptools "develop mode")
pip install -e .
Make a db with python cmd
dummyctl create-bd
you have to see test.db
Connect test.db to our virtual environment: open EnvsdummywebScriptsactivate.bat with a text editor add this lines at the end:
set "FLASK_APP=dummyweb"
set "SQLALCHEMY_DATABASE_URI=sqlite:///D:\\Git\\dummyweb\\test.db"
set "DUMMY_ACCOUNT_DIR=%USERPROFILE%\\dummyaccounts"
Run the server with:
python -m flask run
From the browser try to access: http://127.0.0.1:5000
If it works, well played!