The server depends of virtualenvwrapper ( see https://pypi.org/project/virtualenvwrapper/)
Here all instructions to install and run the server :
-
Install virtualenvwrapper (e.g
pip install virtualenvwrapper
orpip install --user virtualenvwrapper
) -
Create the environment directory (e.g
mkdir $HOME/.environments
) -
Export your env variable (e.g
export WORKON_HOME=$HOME/.environments
) -
Save the env var in your system (e.g
echo export WORKON_HOME=$HOME/.environments >> ~/.bashrc
) -
Activate virtualenvwrapper (e.g
source /usr/local/bin/virtualenvwrapper.sh
) -
Create the python virtual environment (e.g
mkvirtualenv PythonVenv
) -
The first time the python virtual environment is activated automaticaly, then activate manualy (e.g
workon PythonVenv
) -
You are in the venv (you can see
(PythonVenv)
before prompt $) -
Modify postactivate in the environment directory (e.g
$HOME/.environments/PythonVenv/bin/postactivate
) and put these lines :export DATABASE_NAME='djangoDev'
export DATABASE_USER='DBdev'
export DATABASE_PASSWORD='NohJah8o'
export SECRET_KEY=<put your secret key generated with https://miniwebtool.com/django-secret-key-generator/ for example>'
-
Modify predeactivate in the environment directory (e.g
$HOME/.environments/PythonVenv/bin/postactivate
) and put these lines :unset DATABASE_NAME
unset DATABASE_USER
unset DATABASE_PASSWORD
unset SECRET_KEY
-
Now, install all dependancies (or just your dependancies in this case comments in requirments.txt undesired deps) (e.g
pip install -r requirments.txt
) -
Take a coffee, it can take a long time.
-
Deactivate the venv (e.g
deactivate
) -
Edit startServer.sh with your IP addr and your PORT.
-
Run startServer.sh (e.g
./startServer.sh
) -
Connect to the server using your web browser (http://:)
-
Perform your test !
-
OPTIONAL : To use the main database server rename DjangoProjects/glogServer/settings.py.prod into settings.py (make your backup before)
-
Make a pull request on Github if your test is conclusive.
-
Be patient, I will process your request as soon as possible.
-
Your request is added to the main code !