https://github.com/open-craft-guild/crm-smsfly
Embedded integration of some CRM with SMS-Fly gateway via iframe
https://github.com/open-craft-guild/crm-smsfly
django python-3 python-3-5 python-3-6 rq sms sms-gateway vagga
Last synced: 5 months ago
JSON representation
Embedded integration of some CRM with SMS-Fly gateway via iframe
- Host: GitHub
- URL: https://github.com/open-craft-guild/crm-smsfly
- Owner: open-craft-guild
- License: mit
- Archived: true
- Created: 2016-05-15T22:11:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-21T19:54:46.000Z (almost 9 years ago)
- Last Synced: 2024-09-29T17:01:20.489Z (9 months ago)
- Topics: django, python-3, python-3-5, python-3-6, rq, sms, sms-gateway, vagga
- Language: Python
- Homepage: http://sms.itarget.info/app/
- Size: 219 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://waffle.io/wk-tech/crm-smsfly) [](https://travis-ci.org/wk-tech/crm-smsfly) [](https://www.codacy.com/app/webknjaz/crm-smsfly?utm_source=github.com&utm_medium=referral&utm_content=wk-tech/crm-smsfly&utm_campaign=Badge_Grade) [](https://requires.io/github/wk-tech/crm-smsfly/requirements/?branch=master)
# 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](https://www.virtualbox.org/wiki/Downloads) and [vagrant](https://www.vagrantup.com/docs/installation/) 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](https://vagga.readthedocs.io/en/latest/installation.html)
- 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:
```shell
$ 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](http://localhost:8000/app)
# Production
Just check `deploy/` folder and run corresponding playbook with [ansible](http://docs.ansible.com/ansible/intro_installation.html). 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.