Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 mozillacards
Octocat-spinner-32 scripts
Octocat-spinner-32 templates
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.org
README.org

Mozilla Business Card Creator

About

This is a simple django application to dynamically generate mozilla branded business cards for mozilla representatives. The cards are generated using personal data available on mozilla wiki

Installing

Requirements

You need to have system wide installed

  1. python (!)
  2. pip
  3. virtualenv
  4. pycairo (for svg2pdf convertion)
  5. pyrsvg (for svg2pdf convertion)
  6. the fonts you will be using (for svg2pdf convertion)

Mozilla-cards application

  1. ~$ git clone git://github.com/glogiotatidis/mozilla-cards.git
  2. ~$ cd mozilla-cards
  3. ~$ git checkout dev
  4. ~$ ./scripts/build-environment.sh
  5. ~$ source env/bin/activate
  6. (env)~$ cp local_settings.example.py local_settings.py
  7. edit local_settings.py
  8. (env)~$ python manage.py syncdb
  9. (env)~$ python manage.py migrate cardmanager

Using

  1. activate the environment, if not already activated

    ~$ source ./env/bin/activate

  2. runserver

    (env)~$ python manage.py runsever

  3. Login to admin and upload a template

    http://127.0.0.1:8000/admin/cardmanager/template/add/

    You can you the demo templates from ./templates directory

  4. Go to frontend

    http://127.0.0.1:8000

    and order your cards by typing your email

Creating templates

Use your favorite SVG editing application, like Inkscape, to create the business card you want. When design is done, you need to xml edit the svg: For each field that is dynamic you need to change the id attribute to match a field name of Remobox template, like pmail, twitter, name etc.

Inkscape comes with an editor, or you can opt to use your favorite text editor.

When done, upload the template to the application using the administration interface and make sure that the new template is marked as default.

Contact

Giorgos Logiotatidis <glogiotatidis at sealabs.net>

Something went wrong with that request. Please try again.