Giter Club home page Giter Club logo

sayit.mysociety.org's Introduction

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:

  • elasticsearch

  • PostgreSQL

  • The compass and zurb-foundation gems. It's easiest if you install bundler, and run something like the following, which places binaries in the expected place: bundle install --deployment --path ../gems --binstubs ../gem-bin

  • pip, virtualenv and yui-compressor.

  • The development files for libffi and libssl (if you're installing on a Mac, you might want to look at https://cryptography.io/en/latest/installation/)

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

Set up a python virtual environment, activate it, and install the required python packages:

virtualenv virtualenv-sayit
source virtualenv-sayit/bin/activate
cd sayit.mysociety.org
pip install --requirement requirements.txt

Alter the settings to match your setup:

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

Set up the database:

./manage.py syncdb
./manage.py migrate

The development server should now run fine:

./manage.py runserver

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/

To gather all the static files together in deployment, you'll use:

./manage.py collectstatic --noinput

And to compile language .mo files:

./manage.py compilemessages

sayit.mysociety.org's People

Contributors

dracos avatar mhl avatar osfameron avatar struan avatar wrightmartin avatar zarino avatar

Watchers

 avatar

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.