https://github.com/tansengming/rails-base
Rails Bootstrap
https://github.com/tansengming/rails-base
heroku rails ruby
Last synced: about 1 year ago
JSON representation
Rails Bootstrap
- Host: GitHub
- URL: https://github.com/tansengming/rails-base
- Owner: tansengming
- License: gpl-3.0
- Created: 2012-05-03T04:38:55.000Z (about 14 years ago)
- Default Branch: develop
- Last Pushed: 2023-12-27T15:32:55.000Z (over 2 years ago)
- Last Synced: 2025-03-11T20:15:24.809Z (over 1 year ago)
- Topics: heroku, rails, ruby
- Language: Ruby
- Homepage:
- Size: 1.15 MB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: changelog
- License: LICENSE
Awesome Lists containing this project
README
[](https://circleci.com/gh/tansengming/rails-base/tree/develop)
[](https://codeclimate.com/github/tansengming/rails-base)
[](https://depfu.com/github/tansengming/rails-base?project=Bundler)
[](https://heroku.com/deploy?template=https://github.com/tansengming/rails-base/tree/develop)
# Rails Bootstrap
If I was going to build a SASS from scratch. These would be the set of tools I would use. Every Rails developer has their favorite set of tools and gems. These happen to be mine.
The Setup includes:
- **Testing** with RSpec and Factory Girl. You can specify retry counts with the `RETRIES` environment variable i.e. `RETRIES=5 bundle exec rspec spec` to retry failing specs 5 times. By default failing specs get retried 3 times.
- **Application Administration** with Active Admin.
- **Application Monitoring** with Rollbar, Skylight and New Relic.
- **Continuous Integration** and Deployment with Circle CI.
- **Continuous Code Checks** with Code Climate
- **Customer Support** with Intercom and Heap
- **Design** with Twitter Bootstrap
# Installation
## Development
### macOS
1. `git clone https://github.com/tansengming/rails-base.git`
1. `cd rails-base`
1. `rm -rf .git`
1. `rm config/secrets.yml.enc`
1. `git init && git add . && git commit -m 'initial commit'`
1. `rails secrets:setup`
1. `rails secrets:edit` and use the values from `config/secrets.yml.sample`
1. `docker-compose up --build`
1. `docker-compose run app rake db:create`
1. `docker-compose run app rake db:migrate`
1. `docker-compose run app rake db:seed`
1. A web server should be running at http://localhost:3000, a client for the SMTP server should be running at http://localhost:1080
1. Sign up for accounts at Skylight, Segment, Heap, Intercom, sendwithus, Code Climate and Circle CI.
1. Update your secrets at `rails secrets:edit` with all the tokens from the accounts you just signed up for.
## Application Notes
- There are 2 levels of admins. Regular admins get to administer the app. Super Admins administer regular admins. You can access them at `/admin` and `/super_admins`.
- You can ping the app at `/up.json` for availability monitoring. If all goes well it will respond with `{"status":"ok"}`.