No description
  • Ruby 48.1%
  • HTML 37.7%
  • Less 10.1%
  • JavaScript 2.1%
  • CoffeeScript 1.5%
  • Other 0.5%
Find a file
2015-01-16 03:22:57 -02:00
app Changed header image 2015-01-16 03:22:57 -02:00
bin Initial Commit 2014-09-16 00:50:41 -03:00
config Another translation fix 2014-11-03 22:40:53 -02:00
db server email address and letter opener gem for development emails 2014-11-02 00:29:46 -02:00
lib Configuration panel 2014-09-23 22:50:06 -03:00
public env variables and deleted public files 2014-11-03 21:06:51 -02:00
test Sending emails with mandrill 2014-11-01 21:37:27 -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 added sprockets-helpers gem 2014-11-03 19:42:18 -02:00
Gemfile.lock added sprockets-helpers gem 2014-11-03 19:42:18 -02:00
Rakefile Initial Commit 2014-09-16 00:50:41 -03:00
readme.md devise controller name fix 2014-11-03 19:06:25 -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)

Installation

  1. Clone the project: https://github.com/jamesperet/rails_website_template.git
  2. Create 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
  6. Start the server: rails server -p 3000
  7. Login as admin@website.com with the password 12345678

Heroku Deploy

  1. Create a new heroku app: heroku create new-app-name
  2. Run rake assets:precompile
  3. Run figaro heroku:set -e production to copy env variables from config/application.yml and set them in heroku
  4. Add the heroku postgre addon: heroku addons:add heroku-postgresql to create and configure a postgres database in heroku server
  5. Commit changes: git commit -a -m "commit message"
  6. Push to heroku: git push heroku master to deploy the repo
  7. Migrate the database: heroku run rake db:migrate
  8. Create the initial config and admin user: heroku run rake bootstrap:all

Todo's

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

Example Websites