[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Embedded integration of some CRM with SMS-Fly gateway via iframe

License

Notifications You must be signed in to change notification settings

open-craft-guild/crm-smsfly

Repository files navigation

Stories in Ready Build Status Codacy Badge Requirements Status

crm-smsfly

Embedded integration of some CRM with SMS-Fly gateway via iframe.

Development

Prerequisites

  • 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 run vagrant up to populate VM image.
  • If you use GNU/Linux based OS, just install vagga
  • Populate .env file with environment variables, such as DEBUG, DATABASE_URL, CRM_DB_URL, SMSFLY_ID, SMSFLY_PASS, DJANGO_DEBUG_LOG, DJANGO_LOG_LEVEL
  • Install pre-commit with pip install pre-commit; pre-commit install in your environment to make sure your code conforms basic rules

Running the app

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

Production

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).

Notes

Please remember to pass crm_user_id GET param in order to identify current user of an external CRM.