No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

THIS IS AN OLD REPOSITORY! Check new repositories

Tagarela (Beta)

Microservice for comments.

Similar to Isso, but using Viralata for authentication.

An example of web interface using this microservice as backend is Cuidando2.


$ python develop

If you are using Postgres:

$ pip install psycopg2

Place a settings/keypub file with the public key used by the Viralata instance.

Prepare DB

Create the database and user, set them in settings/ as SQLALCHEMY_DATABASE_URI.

SQLALCHEMY_DATABASE_URI = 'postgresql://<user>:<password>@localhost/<database>'

Create tables:

$ python initdb


$ python run

OpenShift Hosting

This code should be OpenShift ready. So it should be possible to host it for free.

Using rhc (don't forget to set the URL for the used repository; maybe this one?):

rhc app create tagarela python-2.7 postgresql-9.2 --from-code=<code-for-repo>

Looks like OpenShift Postgres is not doing Vacuum, so we do it with a cron job:

rhc cartridge add cron -a tagarela

You will also need a keypub file for the used Viralata instance and a file. You can use settings/ as an example for the second one. Place both files in ~/app-root/data/, inside the OpenShift gear. And, from inside the gear, using SSH, init the DB:

. $OPENSHIFT_PYTHON_DIR/virtenv/bin/activate
python -s $OPENSHIFT_DATA_DIR initdb


Needs a 'static' doc, but accesssing the root of a hosted instance it's possible to see a Swagger doc.


Tagarela, in Brazilian Portuguese, means a person who talks a lot...

Known Issues

If you are using Gmail to send comment abuse e-mails, it's possible it will block sending them, by security restrictions. After the problem happened, you can unlock it here.