Dummy Meuporg web frontend.
Setup with:
pip install -e .Create a directory which will contain all the accounts' data. Assume this
directory will be /path/to/accounts_directory here. This path will be
the value of the DUMMY_ACCOUNT_DIR environment variable.
Set environment variables:
FLASK_APP=dummyweb
SQLALCHEMY_DATABASE_URI=sqlite:////path/to/database.db
DUMMY_ACCOUNT_DIR=/path/to/accounts_directoryRun the server with:
python -m flask runinstall 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.
In order to deactivate it:
deactivateIn order to activate it:
workon dummywebActivate 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 .Create a directory which will contain all the accounts' data. Assume this
directory will be %USERPROFILE%\\dummyaccounts here (where %USERPROFILE%
refers to your home directory on Windows, e.g. C:UsersGeoffrey). This path will
be the value of the DUMMY_ACCOUNT_DIR environment variable.
Set the following environment variables:
set "FLASK_APP=dummyweb"
set "SQLALCHEMY_DATABASE_URI=sqlite:///D:\\Git\\dummyweb\\test.db"
set "DUMMY_ACCOUNT_DIR=%USERPROFILE%\\dummyaccounts"Make a db with python cmd
dummyctl create-bdNow you should have a test.db file created at the root directory.
Run the server with:
python -m flask runFrom the browser try to access: http://127.0.0.1:5000
If it works, well played!