Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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.
Python CSS JavaScript HTML Makefile
branch: master

Merge pull request #53 from caynan/patch-2

Fixed some URL mistakes
latest commit 1b84a7fe3c
@avelino authored
Failed to load latest commit information.
beerapp fix typo
.coveragerc adding coverage, should run with : `coverage run tests.py` refs #38
.gitignore
.travis.yml changing travis to use the makefile shortcuts, and adding coverage (i…
Makefile
Procfile Removing worker from proc file, and using the heroku app "Heroku Sche…
README.md Added new Members & How to enter bet topic
manager.py
members.yaml Fixed some URL mistakes
requirements.locals.txt adding coverage, should run with : `coverage run tests.py` refs #38
requirements.txt update flask 0.7.2 to 0.10.1
setup.cfg pre-config somethings for flake8, also increased the max-line-length …
tests.py
update_posts.sh

README.md

BeerBlogging

Build Status

Coverage Status

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 ?

Joining the Bet

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

      ---
      name: your name
      email: youremail@domain.com
      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:

Install

  1. First you need to clone this repository: git clone git@github.com:avelino/beerblogging.git
  2. Then install all requirements by running pip install -r requirements.txt
  3. Run ./manager.py create_db to create the database
  4. Run ./manager.py fetch_posts to populate the database
  5. Run ./manager.py run to run server in 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.

Something went wrong with that request. Please try again.