This repository was archived by the owner on Apr 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Mohamad Nour Chawich edited this page Aug 25, 2016
·
2 revisions
- Python requirements
Make sure to have python 2.7 installed with python -V.
$ git clone git@github.com:shoutit/shoutit-api.git
$ cd shoutit-api
$ pip install -U -r src/requirements/dev.text
$ pip install -r src/requirements/common_noupdate.text-
Required services Install the following and make sure their configurations match those in
src/configs/local.env- PostgreSQL 9.5
-
shoutituser must be created withsuperuserpribilages -
shoutit_localdatabase
-
- Elasticsearch 2.x
- Redis
- PostgreSQL 9.5
-
External requirements
- Download this file IP2LOCATION-LITE-DB9.BIN and place it in
/opt/ip2location
- Download this file IP2LOCATION-LITE-DB9.BIN and place it in
-
Migrations
- Run the migrations for first time
python manage.py migrate
- Run the migrations for first time
$ python manage.py runserver local.api.shoutit.com:80
SHOUTIT_ENVenvironment variable should be set tolocalin all manage.py commands.
127.0.0.1 local.api.shoutit.comrecord should be created in your hosts file
Tests run with pytest.
$ pip install -U -r src/requirements/test.text$ py.test API_DIR --reuse-db --cov=srcWhen creating new migrations --reused-db should be replaced with --create-db
Are you Windows? No worries! We got you covered 👍 You need to install the following
- Git
- Java SE Development Kit
- Microsoft Visual C++ Compiler for Python 2.7
- In case
Pillowdidn't install correctly, you can try installing it using
pip install Pillow==3.3.0 --global-option="build_ext" --global-option="--disable-zlib" --global-option="--disable-jpeg"