Main Avalanche Network server application. Built with Ruby on Rails.

James Peret: 237b744acc New texts dor the landing page лет %!s(int64=10): %!d(string=назад)
app ff395a0f88 New footer and landing page translations typos fixes лет %!s(int64=10): %!d(string=назад)
bin def60a0d18 Initial Commit лет %!s(int64=10): %!d(string=назад)
config 237b744acc New texts dor the landing page лет %!s(int64=10): %!d(string=назад)
db d145622774 subscription AJAX fixes and fluxogram translation лет %!s(int64=10): %!d(string=назад)
features bf9725dae7 devise emails to background job with devise-async gem and async resque email testing лет %!s(int64=10): %!d(string=назад)
lib 21d338e40d Changing rake resque job for Heroku compatibility лет %!s(int64=10): %!d(string=назад)
public 7ec21c1fa6 precompiled assets лет %!s(int64=10): %!d(string=назад)
script dbf9621e94 Cucumber testing suite ininitialized with first scenario лет %!s(int64=10): %!d(string=назад)
spec 82f1b72319 Upload Image bg processing with carrierwave_backgrounder and testing лет %!s(int64=10): %!d(string=назад)
test d1f7d78c7d Email newsletter subscription feature лет %!s(int64=10): %!d(string=назад)
vendor def60a0d18 Initial Commit лет %!s(int64=10): %!d(string=назад)
.gitignore b238330003 updated git ignore and deleted README.rdoc лет %!s(int64=10): %!d(string=назад)
Gemfile 800f0e4b9c AJAX email subscription and other fixes лет %!s(int64=10): %!d(string=назад)
Gemfile.lock 800f0e4b9c AJAX email subscription and other fixes лет %!s(int64=10): %!d(string=назад)
Procfile d1fe9cab7f spawning another process inside the unicorn server лет %!s(int64=10): %!d(string=назад)
Rakefile c579b5d55b renamed rails project to Avalanche2 лет %!s(int64=10): %!d(string=назад)
config.ru def60a0d18 Initial Commit лет %!s(int64=10): %!d(string=назад)
dump.rdb 237b744acc New texts dor the landing page лет %!s(int64=10): %!d(string=назад)
readme.md 8dd074940f Updated readme file лет %!s(int64=10): %!d(string=назад)

readme.md

Avalanche Network (avalanche2)

Second prototype source code of the avalanche network web app.

Installation and Configurations

  1. Clone the project: https://github.com/jamesperet/rails_website_template.git
  2. Create a postgres databases for development and test enviorments.
  3. Configure the databases in config/database.yml
  4. Run rake db:migrate
  5. Run rake bootstrap:all to configure the website and create a admin user
  6. Create the file config/application.yml with all env variables
  7. Set the Google Analytics Tracking code in the file app/assets/javascript/google_analytics.js.coffe
  8. Start the server: rails server -p 3000
  9. Login as admin@website.com with the password 12345678

Deploy to Heroku

  1. Create a new heroku app: heroku create new-app-name
  2. Run figaro heroku:set -e production to copy env variables from config/application.yml and set them in heroku
  3. Add the heroku postgre addon: heroku addons:add heroku-postgresql to create and configure a postgres database in heroku server
  4. Add the heroku Redis to Go addon: heroku addons:add redistogo
  5. Push to heroku: git push heroku master to deploy the repo
  6. Migrate the database: heroku run rake db:migrate
  7. Create the initial config and admin user: heroku run rake bootstrap:all
  8. Add your website URL to the Mixpanel Partner program to earn 200,000 data points every month plus 25,000 people profiles.

Env Variables

	AWS_ACCESS_KEY_ID:
	AWS_SECRET_ACCESS_KEY: 
	AWS_S3_BUCKET:
	AWS_S3_BUCKET_REGION:
	HEROKU_APP_URL: 
	MANDRILL_USERNAME: 
	MANDRILL_KEY: 
	DOMAIN_NAME: 
	SERVER_EMAIL: 
	DEVISE_SECRET_KEY: 
	SECRET_KEY_BASE: 
	MAILCHIMP_KEY: 
	MAILCHIMP_LIST_ID:
	REDISTOGO_URL: