This section documents the necessary steps to install the SignalEducation/version1 codebase.
Requirements:
-
Postgres Database, can download from postgresapp.com/.
-
Ruby 2.2.9
-
Rails 4.2.1, see installrails.com/ for basic installation details
-
Redis, on Mac homebrew is recommended (brew install redis).
-
Invite from github.com/SignalEducation/version1, Fork the repository to your github account.
-
Ensure SSH Keys are set up and clone the fork.
-
Git pulls should be from SignalEducation/version1 master branch for latest stable codebase version.
-
Bundle install.
-
Create a database.yml file and copy the content from sample_database.yml file.
-
Create a local_env.yml file and copy the content from sample_local_env.yml file.
-
Create a local Database
-
rake db:create RAILS_ENV=development
-
rake db:migrate RAILS_ENV=development
-
-
Load a DB dump file.
-
In a terminal start the Redis database with ‘redis-server /usr/local/etc/redis.conf’.
-
In a new terminal window start Sidekiq with ‘sidekiq’.
-
And finally start the Server with ‘rails s’.
-
In a web browser go to localhost:3000 to see the app.
-
Log in credentials
- Admin User: site.admin@example.com - Tutor User: tutor@example.com - Individual User: individual.student@example.com (No subscription attached to this user, therefore is restricted by the paywall. It is recommended that you sign up a new user to simulate the actual student experience.)
-
When testing the Sign Up process use any fake details you wish but you must use Stripe’s test card number ‘4242 4242 4242 4242’, any three/four digit number will work for the CVV and you must give valid dates for Expiry fields.