Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avelino/beerblogging

It's a f*&%cking bet! You have 1 month to write at least 1 blogpost. If you don't do that, you have to pay a beer for everybody.
https://github.com/avelino/beerblogging

Last synced: about 2 months ago
JSON representation

It's a f*&%cking bet! You have 1 month to write at least 1 blogpost. If you don't do that, you have to pay a beer for everybody.

Awesome Lists containing this project

README

        

# BeerBlogging

[![Build Status](https://travis-ci.org/avelino/beerblogging.svg?branch=master)](https://travis-ci.org/avelino/beerblogging)

[![Coverage Status](https://coveralls.io/repos/avelino/beerblogging/badge.svg)](https://coveralls.io/r/avelino/beerblogging)

## What the f*&% is #beerblogging ?

It's a f*&%cking bet!

You have 1 month to write at least 1 blogpost. If you don't do that, you have to pay a beer for everybody.

## Who are the BeerBloggers ?

* Zeno Rocha: [Blog](http://zenorocha.com/) ~ [Feed](http://feeds.feedburner.com/zenorocha)
* Felipe Arruda: [Blog](http://arruda.blog.br/) ~ [Feed](http://www.arruda.blog.br/?feed=rss2)
* Thiago Avelino: [Blog](http://avelino.us/) ~ [Feed](http://feeds.feedburner.com/pyavelino)
* Renato Mangini: [Blog](http://www.renatomangini.com/) ~ [Feed](http://www.renatomangini.com/feeds/posts/default)
* Daniel Filho: [Blog](http://danielfilho.github.io) ~ [Feed](http://danielfilho.github.io/feed.xml)
* Ellison Leão: [Blog](https://medium.com/@ellisonleao) ~ [Feed](https://medium.com/feed/@ellisonleao)
* Eric Hideki:[Blog](http://ericstk.wordpress.com) ~ [Feed](https://ericstk.wordpress.com/feed/)
* Mateus Ortiz: [Blog](http://mateusortiz.com) ~ [Feed](http://feeds.feedburner.com/mateusortiz)
* Antônio Roberto: [Blog](http://devton.io/) ~ [Feed](http://medium.com/feed/@devton)
* Igor Leroy: [Blog](http://lerrua.com/) ~ [Feed](http://www.lerrua.com/atom.xml)
* Ayrton Araújo: [Blog](http://blog.ayr-ton.net) ~ [Feed](http://feeds.feedburner.com/ayr-ton)
* Caynan Sousa: [Blog](http://blog.caynanland.im) ~ [Feed](http://blog.caynanland.im/feed.xml)
* Nicholas Eduardo: [Blog](http:nicholasess.com.br)
* Gustavo Carvalho: [Blog](http://blog.gtsalles.com.br) ~ [Feed](http://blog.gtsalles.com.br/tags/beerblogging/index.xml)
* Jota Teles: [Blog](http://jotateles.com.br) ~ [Feed](http://jotateles.com.br/feed.xml)

## Joining the Bet

1. You have to fork this project
2. Add you data to the `members.yaml` following the model:

```YAML
---
name: your name
email: [email protected]
blog: http://yourbloglink.com
feed: http://yourblogfeed.com
twitter: yourusername
date_joined: !!timestamp 'Y-m-d H:M:s'
tags: your, blog, tags-without-space
id: memberAboveMe.id++
```

3. Edit the README.md, and add your blog URL and Feed.
4. Send a Pull request.
5. WRITE!

## Let's talk about code...

We're using:

* [Python](http://python.org/) programing language
* [Flask](http://flask.pocoo.org/) microframework for web
* [Feed Parser](http://www.feedparser.org/) library

## Install

1. First you need to clone this repository: `git clone [email protected]:avelino/beerblogging.git`
* Then install all requirements by running `pip install -r requirements.txt`
* Run `./manager.py create_db` to create the database
* Run `./manager.py fetch_posts` to populate the database
* Run `./manager.py run` to run server in [localhost:5000](http://localhost:5000)

## Testing

Just execute:

```
$ make test
```

And it should run the tests for you.

## Deploying

To deploy on Heroku:

* `heroku create`
* `heroku addons:add heroku-postgresql:dev`
* `heroku pg:promote HEROKU_POSTGRESQL_COLOR_URL`
* `git push heroku master`
* `heroku run python manager.py create_db`
* `heroku run ./update_posts.sh`

**OBS:** The `update_posts.sh` should be runned everytime, to keep tracking new posts.