No description
  • JavaScript 68.4%
  • CSS 17.5%
  • Ruby 8%
  • HTML 3.8%
  • Gherkin 1.1%
  • Other 1.2%
Find a file
2015-01-12 21:05:10 -02:00
app website config help buttons 2015-01-12 21:05:10 -02:00
bin Initial Commit 2014-09-16 00:50:41 -03:00
config website config help buttons 2015-01-12 21:05:10 -02:00
db Avatar and blog image to background processing 2015-01-10 00:27:49 -02:00
features devise emails to background job with devise-async gem and async resque email testing 2015-01-09 20:08:07 -02:00
lib Changing rake resque job for Heroku compatibility 2015-01-10 00:34:36 -02:00
public Avatar and blog image to background processing 2015-01-10 00:27:49 -02:00
script Cucumber testing suite ininitialized with first scenario 2014-12-19 21:47:37 -02:00
spec Upload Image bg processing with carrierwave_backgrounder and testing 2015-01-10 00:04:11 -02:00
test Email newsletter subscription feature 2015-01-05 04:12:23 -02:00
vendor/assets Initial Commit 2014-09-16 00:50:41 -03:00
.gitignore rails secret token fix 2014-11-03 20:18:39 -02:00
config.ru Initial Commit 2014-09-16 00:50:41 -03:00
Gemfile mixpanel analytics class and tracking for page view, signin, signup, subscription and contact message 2015-01-11 03:33:58 -02:00
Gemfile.lock mixpanel analytics class and tracking for page view, signin, signup, subscription and contact message 2015-01-11 03:33:58 -02:00
Procfile spawning another process inside the unicorn server 2015-01-10 22:13:17 -02:00
Rakefile Initial Commit 2014-09-16 00:50:41 -03:00
readme.md Mixpanel partnership badge 2015-01-12 18:55:36 -02:00
README.rdoc Initial Commit 2014-09-16 00:50:41 -03:00

Rails Website Template

A template for creating rails websites that includes the following:

  • User System (Devise)
  • Twitter Bootstrap + Flatstrap + Font Awesome
  • Basic Blog
  • Admin Panel
  • SummerNote editor
  • Image upload/File System
  • Translation (pt-BR, EN)
  • Contact System
  • Maintaince Mode
  • Email System (PaperClip + Mandrill)
  • Subscription form with Mailchimp integration
  • Google Analytics
  • Tests

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:

Todo's

  • Log
  • Background processing (redis)
  • Search System
  • geo location/maps
  • Help
  • new admin email
  • Invite user/admin
  • admin panel tour
  • rewrite readme file
  • Heroku Deploy button
  • Wiki/Codex
  • Portfolio
  • Store
  • Inventory
  • Module Controller

BUGS

  • page titles!

Example Websites