Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

okfn-brasil/gastos_abertos_website

Repository files navigation

Gastos Abertos Website

Static website for Gastos Abertos Project using Flask.

Install

Install Pandoc

You need Pandoc to convert the Markdown files to HTML. Install it following:

http://johnmacfarlane.net/pandoc/installing.html

Create Virtual environment

$ mkvirtualenv py
$ workon py

Instal Pyandoc

Do not use pip version, because it has Pandoc binary path hardcoded in it.

$ git clone git@github.com:kennethreitz/pyandoc.git
$ cd pyandoc
$ python setup.py install

Clone Gastos Abertos Repository

$ git clone https://github.com/okfn-brasil/gastos_abertos_website.git

Install dependencies

$ cd gastos_abertos_website
$ pip install -r requirements.txt

Build pages and run

First build the pages to build/ directory:

$ fab run_local build_static

Run localserver:

$ fab run_local run_server

Tests

$ fab test