Embedded integration of some CRM with SMS-Fly gateway via iframe.
- If you use OS X or Windows, first install VirtualBox and vagrant and then install
vargant-vagga
plugin (vagrant plugin install vagrant-vagga
). After that runvagrant up
to populate VM image. - If you use GNU/Linux based OS, just install vagga
- Populate
.env
file with environment variables, such asDEBUG
,DATABASE_URL
,CRM_DB_URL
,SMSFLY_ID
,SMSFLY_PASS
,DJANGO_DEBUG_LOG
,DJANGO_LOG_LEVEL
- Install
pre-commit
withpip install pre-commit; pre-commit install
in your environment to make sure your code conforms basic rules
Navigate to repo root in your terminal and then run:
$ vagga run-cached
N.B. in case of non-linux installation, prepend that with vagrant
.
Now you should be able to open the /app in browser
Just check deploy/
folder and run corresponding playbook with ansible. Store environment variables in deploy/roles/smsapp/templates/smsapp.env
first (see smsapp.env.example
).
Please remember to pass crm_user_id
GET param in order to identify current user of an external CRM.