Python JavaScript HTML CSS
Permalink
Failed to load latest commit information.
.docker Celery worker update Jan 27, 2017
.tx Re-implemented syncing translations Apr 18, 2016
apps Merge pull request #2764 from pculture/gh-amara-enterprise-1139 Mar 1, 2017
bin Changed topic branch logic. Jan 18, 2017
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 Adding youtube-dl for pafy Feb 8, 2017
docker-dev/mysql/conf.d Fix for searching against short words / stop words Dec 28, 2015
docs Updated API docs Jan 26, 2017
libs Started making the browsable API nicer Mar 18, 2016
locale Updating translations Oct 25, 2016
media Merge pull request #2768 from pculture/gh-unisubs-2767-redo Feb 22, 2017
optional bumped commit id Mar 1, 2017
static try 137 Nov 29, 2012
templates Fixes #2765 a consequence of facebook new login Feb 17, 2017
user-data Use a temp dir for MEDIA_ROOT during the tests. Feb 3, 2016
utils Start using url_hash for our unique constraint Feb 28, 2017
.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 Updated gitignore Dec 23, 2016
.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 Hide logs during tests. Was erroneously introduced by a recent commit Jan 30, 2017
docker-compose.yml Celery worker update Jan 27, 2017
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 Log IP addresses Dec 12, 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 Merge pull request #2728 from pculture/gh-2624-redo Jan 19, 2017
sitemaps.py Fixed generating counts for the video sitemap Nov 1, 2013
startup.py Switch to using atomic() instead of commit_on_success() Feb 7, 2017
task_settings.py Fixed default queue name Jan 30, 2017
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