Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python JavaScript HTML CSS Other
branch: staging
Failed to load latest commit information.
.docker Update for update_translations.sh
.tx fixed transifex config
apps Merge pull request #2279 from pculture/gh-2276
bin Adding index on video urls that was missing after url length changes,…
closure Remove unused compilation scripts.
css-compression Improved sphinx doc, moved deployment guide and running unisubs to th…
deploy Update deploy script to add a bind mount
docs Updating doc requirements.txt (#2273)
jenkins We don't have icanhaz anymore
libs Removing rosetta, django_extensions, and markup.
locale Updated transifex translations -- through update_translations.sh
media Updating the new-style table CSS
optional Bumping version
puppet merged dev
static try 137
templates Merge pull request #2271 from pculture/new-teams-ui
user-data Added static jpeg for testing
utils Merge branch 'staging' into new-teams-ui
.agignore Ignore more files.
.agignorevcs Add .agignore and .agignorevcs for better Ag searching.
.ctags Add a .ctags file.
.ffignore Ignore more files.
.gitignore Removing some unneed entries in .gitignore
.jshintrc Add jshintrc
.kick Working on new editor HTML and CSS.
COPYING Added license file
Dockerfile Do not use curl for getting audio/video file
README.markdown Updated docker-compose commands
README.transifex Changed all mirosubs references to unisubs. This also entails:
__init__.py Changing our copyright year to 2013.
crossdomain_views.py Added crossdomain views file for last commit.
dev_settings.py Use the console backend for dev email messages
dev_settings_test.py Another batch of webdriver test updates.
docker-compose.yml Switch from fig to docker-compose
initial_data.yaml there were two entries for site 15 so the wrong base url was returned…
manage.py Move startup code to 1 place (#1605)
middleware.py Use hashlib instead of hashcompat
optionalapps.py Don't import from django.conf.urls.defaults
routers.py Corrected stupid mistake with rpc.py. Added uslogging app.
schema.xml added fig local dev environment
search_site.py add base of search view
sentry.dev.conf.py Upgrade sentry.
settings.py Merge branch 'staging' into new-teams-ui
sitemaps.py Fixed generating counts for the video sitemap
startup.py Bunch of documentation fixes
task_settings.py Merge branch 'staging' into gh-2223
test_settings.py Test fixes/improvements
test_staging_settings.py updated test solr settings
testacular.conf.js 2101: Use text() to replace a node's contents when we're exporting th…
unisubs_settings.py Removed ADMIN emails
urls.py Tentatively resolved conflicts in test cases
views.py Changing our copyright year to 2013.

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.