Wiki/Features and Specifications
- Rails 4.2.1
- Ruby 2.2.3p173
- PostgreSQL (development, test and deployment)
-
Clone the repository :
git clone https://github.com/systers/language-translation.git
. Check into the directory after cloning. -
Install PostgreSQL (Version 8.2 and above supported), npm, node, graphviz and imagemagick (for image resize/thumbnail creation).
-
Rename config/database.yml.example to config/database.yml :
mv config/database.yml.example config/database.yml
. -
Update the config/database.yml file with your host name, postgresql username and password.
-
To install all the gems,
bundle install
-
To setup the application database run,
rake db:setup
. -
Install bower using npm :
npm install -g bower
. -
To install bower components, Run
bower install
. -
To setup SMTP for forgot_password functionality, signup with SendGrid and get SMTP domain, username and password values.
-
Create a config.env file in the root of the application containing the above values. Refer config.env.example file for more info.
-
To run the rails application, Run
rails s
. -
Open
localhost:3000
on your browser to run the application. -
To run the testing suite, Run
rake
. -
To view the coverage details, From application root, open coverage directory (
cd coverage
) and runpython -m SimpleHTTPServer
and visitlocalhost:8000
on your browser. -
To set up backup of this application on deployment, refer to the
backup
directory.