+
Skip to content

jordic/guillo_twitt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guillo_twitt Docs

This is a demo/experiment with guillotina to add an extension to allow contenttype inherited/based on twittable to be twittable.

For the prupose of the demo, there is the Twitter OAuth PIN auth implemented, anyway on a serious CMS this has to be done with an UI and the diferent oauth steps.

To run de demo, you must install the addon, and boot the server

For booting guillotina with the addon, you must provide, credentials for your twitter app created, as env variables:

TWITTER_CONSUMER_KEY TWITTER_CONSUMER_SECRET

Later, you need to authenticate the app and get the secret tokens using the command:

g twitt_auth

After that you are ready to start twitting items, just pust a Twittable content, and you will have a "tool" /db/content/twittable-item/@twitt where you can POST to twit.

Dependencies

Python >= 3.6

Installation

This example will use virtualenv:

virtualenv .
./bin/python setup.py develop

Running

Most simple way to get running:

./bin/guillotina

Running Postgresql Server:

docker run --rm -e POSTGRES_DB=guillotina -e POSTGRES_USER=guillotina -p 127.0.0.1:5432:5432 --name postgres postgres:9.6

About

A demo for a service that twits items on db tree.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载