Skip to content
Python JavaScript HTML CSS
Find file
Latest commit 10d5d8a Apr 29, 2016 @bendk bendk Added created field on tasks
Failed to load latest commit information.
.docker Removed unneeded logging Apr 1, 2016
.tx fixed transifex config Nov 26, 2013
apps Added created field on tasks Apr 29, 2016
bin Added flag to log db access in dev environments Apr 6, 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 Merge branch 'staging' into api-work Apr 5, 2016
docker-dev/mysql/conf.d Fix for searching against short words / stop words Dec 28, 2015
docs Link to the old readthedocs endpoint documentation Apr 7, 2016
libs Started making the browsable API nicer Mar 18, 2016
locale Updated transifex translations -- through update_translations.sh Mar 14, 2015
media Merge branch 'staging' into api-work Apr 5, 2016
optional Bumping version Apr 28, 2016
static try 137 Nov 29, 2012
templates Merge pull request #2536 from pculture/gh-2511 Apr 25, 2016
user-data Use a temp dir for MEDIA_ROOT during the tests. Feb 3, 2016
utils Fixed deleted tasks in the API (#2527) Apr 13, 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 Updated docker-compose commands Apr 28, 2015
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 Added JSON logging output Feb 2, 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 Docker container fixes Feb 9, 2016
schema.xml added fig local dev environment Jul 12, 2014
settings.py Merge branch 'staging' into amara-enterprise-513 Apr 19, 2016
sitemaps.py Fixed generating counts for the video sitemap Nov 1, 2013
startup.py Docker container fixes Feb 9, 2016
task_settings.py Changed way we keep the new video index updated Dec 16, 2015
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 Removed leftover references to celery Feb 23, 2016
urls.py Merge branch 'staging' into gh-enterprise-530 Feb 26, 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/test.sh

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:

    docker-compose run --rm app python manage.py createsuperuser --settings=dev_settings
Something went wrong with that request. Please try again.