.. _installation: ============ Installation ============ TriggerHappy can be installed inside an existing project, or from scratch Installation from scratch ========================= We just create a virtualenv with python 3.6 (or 3.5) .. code-block:: bash python3.6 -m venv myproject cd $_ source bin/activate then you can continue with one of the two choice "From GitHub" or "From Pypi" Installation from an existing project ===================================== .. code-block:: bash cd /to/the/path/of/my/existing/project source bin/activate # (if you have a virtualenv) then you can continue with one of the two choice "From GitHub" or "From Pypi" Installation From GitHub ======================== .. code-block:: bash git clone https://github.com/foxmask/django-th.git then continue by installing : .. code-block:: bash cd django-th pip install -e .[all] Installation From Pypi ====================== .. code-block:: bash pip install django-th[all] or to make your own "recipe", for example to install some of the component and not all of them: .. code-block:: bash pip install django-th[min] # will just install rss and Wallabag pip install django-th[rss,wallabag] pip install django-th[rss,twitter,wallabag,github] Once it's done, you can continue to the [configuration process](http://trigger-happy.readthedocs.org/en/latest/configuration.html) Requirements ============ Commons requirements -------------------- * `Python 3.6.x `_ * `Redis `_ * `DjangoRestFramework `_ * `Django `_ * `Arrow `_ * `Django-formtools `_ * `Django-js-reverse `_ * `Django-Redis `_ * `Pypandoc `_ * `Requests-oAuthlib `_ Service requirements -------------------- for evernote support * `Evernote for python 3 `_ * `libtidy-dev `_ The latest libtidy-dev should be installed with your operating system package manager, not from pip. On a Debian/Ubuntu system: .. code:: bash apt-get install libtidy-dev * for github support `github `_ * for mastodon support `Mastodon.py `_ * for pelican support `awesome-slugify `_ * for pocket support `pocket `_ * for pushbullet support `pushbullet.py `_ * for reddit support `praw `_ * for rss support `feedparser `_ * for taiga support `python-taiga `_ * for slack/mattermost support `requests `_ * for todoist support `todoist-python `_ * for trello support `trello `_ + pypandoc Pandoc is also needed of the system, that you can install on a Debian/Ubuntu system like this: .. code:: bash apt-get install pandoc * for twitter support `twython `_ * for wallabag support `wallabag_api `_ Advice ------ If you plan to setup Trigger Happy for you and a group of friends, I suggest you to install https://www.intenct.nl/projects/django-allauth/ Database ======== bootstrap the database .. code-block:: bash python manage.py migrate python manage.py createsuperuser Load the initial services: .. code-block:: bash python manage.py loaddata initial_services Start the application ===================== .. code-block:: bash python manage.py runserver & Now open your browser and go to http://127.0.0.1:8000/th/ to start using the application by logged in