Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python JavaScript HTML CSS
branch: staging
Failed to load latest commit information.
.docker Update for update_translations.sh
.tx fixed transifex config
apps Revert "Use youtube language codes as-is (#452)"
bin Fixed a couple code errors with the --skip-fetch param
closure Remove unused compilation scripts.
css-compression Improved sphinx doc, moved deployment guide and running unisubs to th…
deploy Re-implemented video activity API
docs Added documentation about pagination.
jenkins We don't have icanhaz anymore
libs Removing rosetta, django_extensions, and markup.
locale Updated transifex translations -- through update_translations.sh
media Merge pull request #2138 from pculture/gh-2112
optional Bumping version
puppet merged dev
static try 137
templates Fixed conflict in v1.scss
user-data Added static jpeg for testing
utils Merge branch 'staging' into new-team-api
.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 Fixed ENV format
README.markdown bump for ci test
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 Log youtube get_video_info calls
dev_settings_test.py Another batch of webdriver test updates.
fig.yml Move feed updates to their own celery queue
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 Updating the settings file
sitemaps.py Fixed generating counts for the video sitemap
startup.py Bunch of documentation fixes
task_settings.py Retry failed youtube sync attempts (#1858)
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 Remove STATIC_URL from settings files
urls.py Fix for debug toolbar urls
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 Fig 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 Fig (http://orchardup.github.io/fig/install.html)

  3. Build the Amara docker image:

    ./bin/dev build
    
  4. Start Amara Services:

    fig up -d db worker cache search queue
    
  5. Configure Database:

    ./bin/dev dbreset
    
  6. Start Amara:

    fig up app
    
  7. 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 fig logs <service> i.e. fig logs worker

Testing

To run the test suite:

    ./bin/test.sh

Dev Notes

To run a single manage.py command:

    fig run --rm app python manage.py <command>

To see running services:

    fig ps

To stop and remove all containers:

    fig kill ; fig rm

To view logs from a service:

    fig logs <service>

To create an admin user:

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