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_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.
In order to deactivate it:
deactivate
In order to 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 .
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-bd
Now you should have a test.db
file created at the root directory.
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!