Python JavaScript HTML CSS
Latest commit ddb7f51 Dec 8, 2016 @bendk bendk Use the "z" flag instead of "Z" for docker volumes
This allows the volumes to be shared, which we need because both the
worker and app container use the unisubs one.
Permalink
Failed to load latest commit information.
.docker Re-implemented syncing translations Apr 18, 2016
.tx Re-implemented syncing translations Apr 18, 2016
apps Merge branch 'newapi' into staging Dec 6, 2016
bin Add --rm when running manage commands Dec 7, 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 This fixes a bunch of ssl warnings for me Dec 8, 2016
docker-dev/mysql/conf.d Fix for searching against short words / stop words Dec 28, 2015
docs Updating API docs Dec 8, 2016
libs Started making the browsable API nicer Mar 18, 2016
locale Updating translations Oct 25, 2016
media Migrate visible attribute to published Dec 1, 2016
optional Bumping version Nov 29, 2016
static try 137 Nov 29, 2012
templates Merge pull request #2657 from nslottow/gh-784-nslottow Oct 25, 2016
user-data Use a temp dir for MEDIA_ROOT during the tests. Feb 3, 2016
utils Added some more functionality to new notifications Nov 7, 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 Adding new subtitle type class to deal with subtitle type permissions Sep 6, 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 Use the "z" flag instead of "Z" for docker volumes Dec 8, 2016
initial_data.yaml Remove the www from our domain Nov 16, 2016
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 New notification handler system Oct 25, 2016
sitemaps.py Fixed generating counts for the video sitemap Nov 1, 2013
startup.py New notification handler system Oct 25, 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