This is a branch for merging.
sudo apt-get install libass-dev libpq-dev postgresql \
build-essential redis-server redis-tools
sudo apt-get install python3-pip python3-dev
sudo pip3 install virtualenvwrapper
echo "export VIRTUALENVWRAPPER_PYTHON=`which python3.6`" >> ~/.bashrc
echo "alias v.activate=\"source $(which virtualenvwrapper.sh)\"" >> ~/.bashrc
source ~/.bashrc
v.activate
mkvirtualenv --python=$(which python3.6) --no-site-packages dolphin
workon dolphin
pip install -U pip setuptools wheel
You can install by 'pip install' and use https by the following way:
pip install git+https://github.com/Carrene/dolphin.git
Or you can use SSH:
pip install [email protected]:Carrene/dolphin.git
So, your changes will affect instantly on the installed version
cd /path/to/workspace
git clone [email protected]:Carrene/dolphin.git
cd dolphin
pip install -e .
echo "eval \"\$(register-python-argcomplete dolphin)\"" >> $VIRTUAL_ENV/bin/postactivate
deactivate && workon dolphin\
Dolphin is zero configuration application and there is no extra configuration file needed, but if you want to have your own
configuration file, you can make a dolphin.yml
in the following path: ~/.config/dolphin.yml
such as following format:
db:
url: postgresql://postgres:postgres@localhost/dolphin_dev
test_url: postgresql://postgres:postgres@localhost/dolphin_test
administrative_url: postgresql://postgres:postgres@localhost/postgres
oauth:
secret: <Secret Key>
application_id: <1>
access_token:
url: <CAS server address>/apiv1/accesstokens
verb: create
member:
url: <CAS server address>/apiv1/members
verb: get
chat:
room:
url: <Chat server address>
dolphin db create --drop --basedata [or instead of --basedata, --mockup]
dolphin [-c path/to/config.yml] db drop
dolphin [-c path/to/config.yml] db create
Or, you can add --drop
to drop the previously created database: TAKE CARE ABOUT USING THAT
dolphin [-c path/to/config.yml] db create --drop
dolphin [-c path/to/config.yml] db schema
$ pytest
- Using python builtin http server
$ dolphin serve
- Gunicorn
$ ./gunicorn
$ dolphin mule start
- Use
--query-interval
to determine the working time interval.
$ dolphin mule start --query-interval 5