A hosting service for data using the SayIt component
HTML Python CSS Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.tx
about
conf
login_token
sayit_mysociety_org
scrapers
script
web
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.md
manage.py
requirements.txt
setup.cfg

README.md

sayit.mysociety.org

This repository contains a Django project that uses the SayIt component to provide a hosting service for transcripts, presenting them in a modern, searchable format.

Examples of transcripts hosted by mySociety's deployment of this hosting project:

SayIt is a Poplus component by mySociety. It is a Django application that can be included in your own Django project, or run standalone. If you want to host your own transcripts in SayIt, please see the Sayit repository; this repository is a remote hosting service on top of SayIt, similar to wordpress.com compared with wordpress.org.

Installation

You will need to have the following installed:

There is a list of the required Debian/Ubuntu packages in conf/packages.

Clone the repository:

mkdir sayit.mysociety.org
cd sayit.mysociety.org
git clone https://github.com/mysociety/sayit.mysociety.org

Create a PostgreSQL database and user:

sudo -u postgres psql
postgres=# CREATE USER sayit WITH password 'sayit';
CREATE ROLE
postgres=# CREATE DATABASE sayit WITH OWNER sayit;
CREATE DATABASE

You can run the bootstrap script directly, it will set up a virtualenv for you, or set up/activate your own virtualenv first if you prefer:

script/bootstraop

Alter the settings to match your setup:

cp conf/general.yml-example conf/general.yml

Set up the database, static files and language .mo files:

script/update

The development server should now run fine:

script/server

You'll want to use http://127.0.0.1.xip.io:8000/ and instances can be seen at e.g. http://default.127.0.0.1.xip.io:8000/