https://github.com/printercu/basic_rails_app
Rails app with basic setup
https://github.com/printercu/basic_rails_app
Last synced: 9 months ago
JSON representation
Rails app with basic setup
- Host: GitHub
- URL: https://github.com/printercu/basic_rails_app
- Owner: printercu
- Created: 2017-12-06T13:35:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T14:12:36.000Z (over 8 years ago)
- Last Synced: 2025-01-20T06:43:39.614Z (over 1 year ago)
- Language: Ruby
- Size: 67.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BasicRailsApp
## Setup
### Install requirements
- PostgreSQL 9.6
- ruby from `.ruby-version`
- [NodeJS](https://nodejs.org/en/download/package-manager/)
- [Yarn](https://yarnpkg.com/en/docs/install)
- `gifsicle`, `optipng`, `jpegoptim` to optimize images while `assets:precompile`.
### App
- Clone repo.
- _Optionally._ `bin/copy_samples` and edit `database.yml`.
- Run `bin/setup`.
## Development
- Follow rubocop advices.
- Write simple code, which is easy to support.
- Prefer TDD:
- Write request spec for every path from routes.
- Write additional request specs for branches in templates.
- Use RSpec helpers and idioms (`its`, `described_class`, `subject { -> {} }`, etc.).
### Assets
Use Yarn for external js libs. Provide yarn on app server as it fetches dependencies
on `assets:precompile`.