Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nimblehq/rails-templates
Our optimized Rails templates used in our projects
https://github.com/nimblehq/rails-templates
docker rails-template ruby ruby-on-rails
Last synced: 3 days ago
JSON representation
Our optimized Rails templates used in our projects
- Host: GitHub
- URL: https://github.com/nimblehq/rails-templates
- Owner: nimblehq
- License: mit
- Created: 2015-11-25T10:13:58.000Z (about 9 years ago)
- Default Branch: develop
- Last Pushed: 2024-11-18T07:01:56.000Z (about 2 months ago)
- Last Synced: 2024-12-30T07:07:46.548Z (10 days ago)
- Topics: docker, rails-template, ruby, ruby-on-rails
- Language: Ruby
- Homepage: https://nimblehq.co
- Size: 912 KB
- Stars: 103
- Watchers: 25
- Forks: 25
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
Rails Templates---
Our templates offer a rich boilerplate to jump start Rails-based application development and are based on our experience
with building complex applications over the years.## Get Started
### Requirements
- Install ruby and set your local ruby version to `3.3.1`
- Install rails `7.1.3`
- Install node `22.1.0` (For creating web application)> 📝 If running on Apple M1, to build docker image, please make sure to set platform to AMD64 by `export DOCKER_DEFAULT_PLATFORM=linux/amd64`
### Use the template
In order to use the template, initialize a new app with the following parameters:
```sh
rails new -m https://raw.githubusercontent.com/nimblehq/rails-templates/main/template.rb
```Supported template options:
- `--api` - create an api-only applicationTo apply the template on an existing application, run following rails command:
```sh
rails app:template LOCATION=https://raw.githubusercontent.com/nimblehq/rails-templates/main/template.rb# To apply on an api application
rails app:template LOCATION=https://raw.githubusercontent.com/nimblehq/rails-templates/main/template.rb API=true# To apply a specific addon
rails app:template LOCATION=https://raw.githubusercontent.com/nimblehq/rails-templates/main/template.rb ADDON=
```Available Addons:
- `docker`
- `nginx`
- `phrase`
- `bootstrap`
- `slim`
- `devise`After the template finishes generating all the files, run the following command to start the rails server.
```sh
make dev
```Read more about Rails Application Template in the [official Rails Guides](https://guides.rubyonrails.org/rails_application_templates.html).
## Contribution Resources
- [Contributions Guidelines](../../wiki/Contribution_Guide).
- [Testing the template](../../wiki/Testing)## License
This project is Copyright (c) 2014 and onwards. It is free software,
and may be redistributed under the terms specified in the [LICENSE] file.[LICENSE]: /LICENSE
## About
![Nimble](https://assets.nimblehq.co/logo/dark/logo-dark-text-160.png)
This project is maintained and funded by Nimble.
We love open source and do our part in sharing our work with the community!
See [our other projects][community] or [hire our team][hire] to help build your product.[community]: https://github.com/nimblehq
[hire]: https://nimblehq.co/