Giter Site home page Giter Site logo

testing-rails-base's Introduction

CircleCI Code Climate Depfu Deploy

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
  2. cd rails-base
  3. rm -rf .git
  4. rm config/secrets.yml.enc
  5. git init && git add . && git commit -m 'initial commit'
  6. rails secrets:setup
  7. rails secrets:edit and use the values from config/secrets.yml.sample
  8. docker-compose up --build
  9. docker-compose run app rake db:create
  10. docker-compose run app rake db:migrate
  11. docker-compose run app rake db:seed
  12. A web server should be running at http://localhost:3000, a client for the SMTP server should be running at http://localhost:1080
  13. Sign up for accounts at Skylight, Segment, Heap, Intercom, sendwithus, Code Climate and Circle CI.
  14. 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"}.

testing-rails-base's People

Contributors

streichsbaer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.