Это шаблон приложения Rails 5 и Angular 2 Основано на mattbrictson/rails-template и AngularClass/angular2-webpack-starter.
- Rails 5.0.0
- PostgreSQL, в продакшене
По желанию.
Для того, что бы сделать этот шаблон использовался при создании приложений по-умолчанию, создайте файл ~/.railsrc
со следующим содержимым:
-m https://raw.githubusercontent.com/RogerW/rails5-angular2-webpack-template/master/template.rb --api
Далее выполняем команду:
rails new blog \
-m https://raw.githubusercontent.com/RogerW/rails5-angular2-webpack-template/master/template.rb --api
rails new blog (если вы создали ~/.railsr, то выполняем эту команду)
Для запуска приложения выполните:
foreman start
Шаги выполнения:
- Генерирование файлов и каталогов приложения
- Проверка наличия установленног Bundler
- Создает базы для рабочего и тестового окружения
- Создает репозиторий git
- Отправляет код в удаленный репозиторий, который вы укажите.
- Ядро
- active_type – for building simple and effective form/service objects
- sidekiq – Redis-based job queue implementation for Active Job
- Настройка
- dotenv – in place of the Rails
secrets.yml
- dotenv – in place of the Rails
- Иструменты
- annotate – auto-generates schema documentation
- autoprefixer-rails – automates cross-browser CSS compatibility
- awesome_print – try
ap
instead ofputs
- better_errors – useful error pages with interactive stack traces
- guard – runs tests as you develop; mandatory for effective TDD
- livereload – magically refreshes browsers whenever you save a file
- rubocop – enforces Ruby code style
- xray-rails – inspect view partials in the browser
- Разворачивание
- capistrano-mb – capistrano recipes
- unicorn – the industry-standard Rails server
- unicorn-worker-killer – to manage memory use
- Безопасность
- brakeman and bundler-audit – detect security vulnerabilities
- secure_headers – hardens your app against XSS attacks
- Тесты
- capybara and poltergeist – integration testing
- minitest-reporters – colorizes test output with progress bar and more
- mocha – excellent mocking for Test::Unit/Minitest
- simplecov – code coverage reports
- shoulda – shortcuts for common ActiveRecord tests
- test_after_commit – ensures after_commit hooks can be tested