Python JavaScript HTML CSS
Permalink
Failed to load latest commit information.
.docker Re-implemented syncing translations Apr 18, 2016
.tx Re-implemented syncing translations Apr 18, 2016
apps Order teams on the move form alphabetically Aug 19, 2016
bin Fixed exception when running dev manage without agrs Aug 25, 2016
closure Remove unused compilation scripts. Jul 27, 2012
css-compression Improved sphinx doc, moved deployment guide and running unisubs to th… Jul 30, 2011
deploy Back to RTD for our API documentation Jun 3, 2016
docker-dev/mysql/conf.d Fix for searching against short words / stop words Dec 28, 2015
docs Updated development workflow section in our documentation Aug 19, 2016
libs Started making the browsable API nicer Mar 18, 2016
locale One more translation sync Jun 27, 2016
media Fixed JS tests Aug 24, 2016
optional Bumping version Aug 22, 2016
static try 137 Nov 29, 2012
templates added new bullet point to youtube modal Aug 18, 2016
user-data Use a temp dir for MEDIA_ROOT during the tests. Feb 3, 2016
utils Added Egyptian Arabic to RTL Jul 14, 2016
.agignore gitignore cleanup Dec 9, 2015
.ctags Add a .ctags file. Jan 18, 2012
.dockerignore Docker build update Feb 2, 2016
.ffignore Ignore more files. Apr 9, 2013
.gitignore gitignore cleanup Dec 9, 2015
.jshintrc Add jshintrc Jan 1, 2013
.kick Working on new editor HTML and CSS. Dec 27, 2012
COPYING Added license file Mar 27, 2010
Dockerfile Updated to django-rest-framework 3.2.0 Mar 17, 2016
README.markdown Fixed createsuperuser command in the README Aug 18, 2016
README.transifex Changed all mirosubs references to unisubs. This also entails: Aug 23, 2011
__init__.py Changing our copyright year to 2013. Jan 3, 2013
crossdomain_views.py Added crossdomain views file for last commit. Apr 18, 2011
dev_settings.py Switch to READ COMMITTED mode for database consistency May 5, 2016
dev_settings_test.py Updated test signals a bit Dec 4, 2015
docker-compose.yml Added flag to log db access in dev environments Apr 6, 2016
initial_data.yaml there were two entries for site 15 so the wrong base url was returned… Oct 25, 2012
manage.py Move startup code to 1 place (#1605) Aug 6, 2014
middleware.py Set x-content-type-options haeder Mar 30, 2016
optionalapps.py Updated development workflow section in our documentation Aug 19, 2016
schema.xml added fig local dev environment Jul 13, 2014
settings.py Couple API tweaks for enterprise stuff Jul 7, 2016
sitemaps.py Fixed generating counts for the video sitemap Nov 1, 2013
startup.py Different way to implement the force index hack Jun 15, 2016
task_settings.py Correctly expire login tokens Jun 30, 2016
test_settings.py Removed haystack/solr code Dec 28, 2015
testacular.conf.js 2101: Use text() to replace a node's contents when we're exporting th… Feb 28, 2013
unisubs_settings.py Switch to READ COMMITTED mode for database consistency May 5, 2016
urls.py Use the static media system for our JS catalogs Apr 15, 2016
views.py Use different staff_member_required wrapper Mar 11, 2016

README.markdown

This repository is the code for the Amara project.

The full documentation can be found at http://amara.readthedocs.org/en/latest/index.html

Quick Start

Amara uses Docker. For ease of development, we use the docker-compose tool to have a full, production like, local dev environment.

  1. Git clone the repository:

    git clone git://github.com/pculture/unisubs.git unisubs
    

    Now the entire project will be in the unisubs directory.

  2. Install docker-compose (http://docs.docker.com/compose/install/)

  3. Build the Amara docker image:

    bin/dev build
    
  4. Start Amara Containers:

    bin/dev up
    
  5. Configure Database:

    bin/dev dbreset
    
  6. Add unisubs.example.com to your hosts file, pointing at 127.0.0.1. This is necessary for Twitter and Facebook oauth to work correctly.

    You can access the site at http://unisubs.example.com:8000.

To see services logs, run docker-compose logs <service> i.e. docker-compose logs worker

Testing

To run the test suite:

    bin/dev test

Dev Notes

To run a single manage.py command:

    bin/dev manage <command>

To see running services:

    docker-compose ps

To stop and remove all containers:

    docker-compose kill ; docker-compose rm

To view logs from a service:

    docker-compose logs <service>

To create an admin user:

    bin/dev manage createsuperuser