No description
- JavaScript 68.4%
- CSS 17.5%
- Ruby 8%
- HTML 3.8%
- Gherkin 1.1%
- Other 1.2%
| app | ||
| bin | ||
| config | ||
| db | ||
| features | ||
| lib | ||
| public | ||
| script | ||
| spec | ||
| test | ||
| vendor/assets | ||
| .gitignore | ||
| config.ru | ||
| Gemfile | ||
| Gemfile.lock | ||
| Procfile | ||
| Rakefile | ||
| readme.md | ||
| README.rdoc | ||
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
- Clone the project:
https://github.com/jamesperet/rails_website_template.git - Create a postgres databases for development and test enviorments.
- Configure the databases in
config/database.yml - Run
rake db:migrate - Run
rake bootstrap:allto configure the website and create a admin user - Create the file
config/application.ymlwith all env variables - Set the Google Analytics Tracking code in the file
app/assets/javascript/google_analytics.js.coffe - Start the server:
rails server -p 3000 - Login as
admin@website.comwith the password12345678
Deploy to Heroku
- Create a new heroku app:
heroku create new-app-name - Run
figaro heroku:set -e productionto copy env variables fromconfig/application.ymland set them in heroku - Add the heroku postgre addon:
heroku addons:add heroku-postgresqlto create and configure a postgres database in heroku server - Add the heroku Redis to Go addon:
heroku addons:add redistogo - Push to heroku:
git push heroku masterto deploy the repo - Migrate the database:
heroku run rake db:migrate - Create the initial config and admin user:
heroku run rake bootstrap:all - 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!