https://github.com/annastacia-dev/rails_template
Bash script for creating a new rails app.
https://github.com/annastacia-dev/rails_template
rails railstemplates template
Last synced: 21 days ago
JSON representation
Bash script for creating a new rails app.
- Host: GitHub
- URL: https://github.com/annastacia-dev/rails_template
- Owner: Annastacia-dev
- License: mit
- Created: 2024-05-07T08:58:41.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-05-11T07:17:00.000Z (12 months ago)
- Last Synced: 2025-02-13T12:24:25.304Z (2 months ago)
- Topics: rails, railstemplates, template
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## rails_template.sh
Bash script for initializing a new rails app.## what
- postgresql database
- tailwind css for styling
- install devise gem for auth
- install annotate in development group to annotate models
- install byebug gem in development and test group for debugging
- install papertrail gem for tracking changes in your models
- install friendly id gem to generate slugs for models
- install active storage
- enable 'pgcryypto' extension and configure `initializers/generators.rb` to use `uuid` as the `primary_key` for active record
- create a model concern `app/models/concerns/sluggable.rb` with a class method that can be called to clug your models.
- create a gemset with the same name as your app.
- create a bash alias to use the ruby version & gemset.
- initialize git & commit changes
- start the rails app## how
- while in the path containing the file run `chmod +x rails_template.sh` to make it executable
- then run `./rails_template.sh` or whichever path you want your rails app to be contained
- you will be prompted to enter the app name then the script will run.