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 Fixed broken setup_preview_site
.tx fixed transifex config
apps test fixes
bin dev dbdump improvement
closure Remove unused compilation scripts.
css-compression Improved sphinx doc, moved deployment guide and running unisubs to th…
deploy Fixes issue with current site not being set correctly with preview bu…
docs Fixed documentation building
jenkins We don't have icanhaz anymore
libs Removing rosetta, django_extensions, and markup.
locale Updated transifex translations -- through update_translations.sh
media Merge branch 'gh-2285' into staging
optional bumping version
puppet merged dev
static try 137
templates Fixed learn more link (#2315)
user-data Added static jpeg for testing
utils Fixed language labels for non-task teams (#2320)
.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 broken setup_preview_site
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 Return UTC datetimes in the API (#2267)
docker-compose.yml Workaround for entrypoints bug in Docker 1.7.0 (Docker issue #14170)
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 One more fix to remove the metrics code (#2270)
optionalapps.py Don't import from django.conf.urls.defaults
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 Removing Reimann code (#2270)
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 Also removed the unisubs router which is not used anymore either
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.