Rails Starter Kit was created as a way to save time when starting a new Rails project. We have taken the most common functionality and configuration in our existing Rails projects, and put those into this project. Simply clone this project, and change the git remote to your remote repository. Rails Starter Kit is ready to host on Heroku.
- Create a new repository on GitHub, BitBucket, or your own server
- Create a directory for your new project, and go into it
- Clone Rails Starter Kit into your new folder
- Change the git remote to your new repository
- Push changes
After creating the new repository, follow these steps in the terminal:
$ mkdir demo
$ cd demo
$ git clone git@github.com:codeisstandard/rails-starter-kit.git .
$ git remote set-url origin git@github.com:[org/repo.git]
$ git push origin master
To update the following files with your project name, run the following command in the terminal:
$ rake project:setup
This will update:
- README.md
- app/views/layouts/application.html.erb
- config/database.yml
- config/initializers/session_store.rb
- config/application.rb
Just a couple more things before you dive in:
- Update the mailer host in
config/environments/development.rb
andconfig/environments/production.rb
If everything goes well, you should be ready to start work on your new project.
- Bootstrap with SASS
- Procfile and 12factor gem for Heroku compatibility
- Environment variables
- Upload to S3
- Sidekiq configuration for background processing
- User authentication via Devise
- Mailer configuration
- Flash message placeholders
Also check out Rails Best Practices: https://github.com/codeisstandard/rails-best-practices