Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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 webdriver test updates for sync tab, and editor and api updates
bin fix typo in dev bump
closure Remove unused compilation scripts.
css-compression Improved sphinx doc, moved deployment guide and running unisubs to th…
deploy Increase required version of coverage
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 #2196 from pculture/gh-1743
optional Bumping version
puppet merged dev
static try 137
templates Merge pull request #2196 from pculture/gh-1743
user-data Added static jpeg for testing
utils Adding unittest tool
.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 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 Print log entries to the console for dev instances
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 Add CORS headers to api requests (#2160)
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 Set TEMPLATE_DEBUG=False on staging/production
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 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.