Giter Site home page Giter Site logo

chachara's Introduction

chachara

a small picoblogging webapp using flask/gae/pubsubhubbub

gae can be changed for any other hosting as long as model.py is implemented for that backend.

clone:

git clone https://github.com/marianoguerra/chachara.git

setup:

cd chachara
# init virtualenv
virtualenv --distribute chachara 
# activate virtualenv
cd chachara
source bin/activate

install dependencies:

pip install --ignore-installed -t . -r requirements.txt

create a settings module, base on this one, change the things between <>:

import os

DEBUG = os.environ.get('SERVER_SOFTWARE', 'Dev').startswith('Dev')
SECRET_KEY = '<secret key here>'
SALT = '<salt here>'
MAX_USERS = 5

if DEBUG:
    HUB_URL = "http://localhost:8082/"
else:
    HUB_URL = "http://pubsubhubbub.appspot.com/"

start server:

path/to/google_appengine/dev_appserver.py . -p 8080 --datastore_path=/tmp/chachara8080
# start other if you want
path/to/google_appengine/dev_appserver.py . -p 8081 --datastore_path=/tmp/chachara8081

open your browser and go to http://localhost:8080/

get pubsubhubbub server:

svn checkout http://pubsubhubbub.googlecode.com/svn/trunk/ pubsubhubbub

start it:

path/to/google_appengine/dev_appserver.py pubsubhubbub/hub/ -p 8082 --datastore_path=/tmp/pshb8082

create some users:

curl -X POST http://localhost:8080/api/user --data-binary '{"username": "mariano", "password": "secret"}' -H 'Content-type: application/json' -H "Accept: application/json"

curl -X POST http://localhost:8081/api/user --data-binary '{"username": "ignacio", "password": "secret"}' -H 'Content-type: application/json' -H "Accept: application/json"

license

AGPL v3

chachara's People

Contributors

marianoguerra avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ahmerkureishi

chachara's Issues

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.