An application to increase the availability of image descriptions in textbooks for print disabled students. This image description web service will enable authors/content creators, publishers, social enterprises, such as Bookshare, educators and volunteers to easily add, enhance, moderate and share image descriptions to e-books and digital textb…
JavaScript HTML Ruby CSS ActionScript XSLT Other
Latest commit e27fe59 Oct 9, 2015 John Brugge IMG-880: Heroku suggestion to turn off initialization and db connecti…
…ons during precompile phase.
Permalink
Failed to load latest commit information.
app Merging develop branch for 5.2.8 release. Sep 25, 2015
config IMG-880: Heroku suggestion to turn off initialization and db connecti… Oct 9, 2015
db IMG-852 add LaTex input option Apr 6, 2015
doc testing email on commit Mar 17, 2011
features
lib IMG-637: Don't swallow exceptions that are important. Nov 5, 2014
public public/javascripts/templates/edit_image_tabs.html Apr 11, 2015
script removing apparently unnecessary script Sep 21, 2011
spec IMG-842: Specs for dynamic description model. Mar 20, 2015
test IMG-754: Not useful. Mar 13, 2015
vendor/plugins initial commit of default rails app Mar 3, 2011
.gitignore Added ruby-env to ignore list Mar 18, 2014
.rspec Install rspec and cucumber into rails, and add gems needed to avoid e… Apr 26, 2011
.sample-env Add sample env file and ignores for the actual env file Jul 19, 2013
Gemfile
Gemfile.lock IMG-754: Upgrade FactoryGirl. Mar 17, 2015
Procfile initial stab at delayed job uploading to s3 Sep 19, 2011
README
Rakefile initial commit of default rails app Mar 3, 2011
config.ru dummy change to get diagram to repull Apr 30, 2012
result.htm initial base functionality. still need much validation and error hand… Mar 8, 2011

README

This source code is being made available under the Revised BSD or The BSD 3-Clause License.


Copyright (c) 2011-2013, Benetech Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Benetech nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


This image description editing web application is intended to be run as a Ruby on Rails application.


The following environment variables need to be set for the application to function as intended:

RACK_ENV {should be set to production (most likely) or development for dev purposes}
POET_HOST {Name of the host of your web application, example: www.myapp.com }

The repository of DAISY book files can be stored in the local file system or Amazon S3. For Amazon S3:
AWS_ACCESS_KEY_ID     {AWS Access Key}
AWS_SECRET_ACCESS_KEY {AWS Secret Access Key}
POET_ASSET_BUCKET     {Name of the bucket in S3 where you want to store your files}
POET_S3_EXPIRE_DAYS   {Number of days after which you want to expire your S3 files (to save money)}

If you wish, instead, to use a local file system:
POET_LOCAL_STORAGE_DIR {fully qualified name of directory. *Make Sure* your application has permissions to this dir}


The application uses Sendgrid by default to send user registration emails. If you wish to use Sendgrid, you will also need to set
the following environment variables:
SENDGRID_USERNAME     {Sendgrid username}
SENDGRID_PASSWORD     {Sendgrid password}

To setup the MySQL database, modify config/database.yml and add the proper connection info for whatever environments will be used. Then run 'rake db:migrate' to create the necessary tables.


After downloading the source code and setting the environment variables, you should run the application using:
"foreman start"