Coder Social home page Coder Social logo

teotikalki / taiga-contrib-mailchimp-subscription Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kaleidos-ventures/taiga-contrib-mailchimp-subscription

0.0 2.0 0.0 61 KB

Plugin to subscribe and unsubscribe users to the newsletter in MailChimp

Python 79.05% CoffeeScript 11.57% JavaScript 5.44% HTML 3.94%

taiga-contrib-mailchimp-subscription's Introduction

Taiga Contrib MailChimp Subscription

Taiga plugin to subscribe and unsubscribe users to the newsletter in MailChimp.

Installation

Production env

Taiga Back

In your Taiga back python virtualenv install the pip package taiga-contrib-mailchimp-subscription with:

  pip install -e "git+https://github.com/taigaio/taiga-contrib-mailchimp-subscription.git@stable#egg=taiga-contrib-mailchimp-subscription&subdirectory=back"

Then modify in taiga-back your settings/local.py and include this line:

  MAILCHIMP_NEWSLETTER_ID = "my-newsletter"
  MAILCHIMP_API_KEY = "XXXXXXXXXXXXXXXXX"

  INSTALLED_APPS += ["taiga_contrib_mailchimp_subscription"]

Taiga Front

Download in your dist/plugins/ directory of Taiga front the taiga-contrib-mailchimp-subscription compiled code (you need subversion in your system):

  cd dist/
  mkdir -p plugins
  cd plugins
  svn export "https://github.com/taigaio/taiga-contrib-mailchimp-subscription/branches/stable/front/dist" "mailchimp-subscription"

Include in your dist/conf.json in the contribPlugins list the value "/plugins/mailchimp-subscription/mailchimp-subscription.json":

...
    "contribPlugins": [
        (...)
        "/plugins/mailchimp-subscription/mailchimp-subscription.json"
    ]
...

Dev env

Taiga Back

Clone the repo and

  cd taiga-contrib-mailchimp-subscription/back
  workon taiga
  pip install -e .

Then modify in taiga-back your settings/local.py and include this line:

  MAILCHIMP_NEWSLETTER_ID = "my-newsletter"
  MAILCHIMP_API_KEY = "XXXXXXXXXXXXXXXXX"

  INSTALLED_APPS += ["taiga_contrib_mailchimp_subscription"]

Taiga Front

After clone the repo link dist in taiga-front plugins directory:

  cd taiga-front/dist
  mkdir -p plugins
  cd plugins
  ln -s ../../../taiga-contrib-mailchimp-subscription/front/dist mailchimp-subscription

Include in your dist/conf.json in the contribPlugins list the value "/plugins/mailchimp-subscription/mailchimp-subscription.json":

...
    "contribPlugins": [
        (...)
        "/plugins/mailchimp-subscription/mailchimp-subscription.json"
    ]
...

In the plugin source dir taiga-contrib-mailchimp-subscription run

npm install

and use:

  • gulp to regenerate the source and watch for changes.
  • gulp build to only regenerate the source.

Tests

  cd taiga-back
  workon taiga
  py.test ../taiga-contrib-mailchimp-subscription/back/taiga_contrib_mailchimp_subscription_tests

taiga-contrib-mailchimp-subscription's People

Contributors

bameda avatar xaviju avatar superalex avatar juanfran avatar

Watchers

James Cloos avatar Teoti Nathaniel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.