Coder Social home page Coder Social logo

shimada-toy-box / rails-templates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nimblehq/rails-templates

0.0 0.0 0.0 906 KB

Our optimized Rails templates used in our projects

Home Page: https://nimblehq.co

License: MIT License

Ruby 93.14% Shell 1.26% JavaScript 1.02% Makefile 2.94% SCSS 0.90% Procfile 0.11% HTML 0.63%

rails-templates's Introduction

Nimble logo

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.2.2
  • Install rails 7.0.6
  • Install node 16.20.1 (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:

rails new <app_name> -m https://raw.githubusercontent.com/nimblehq/rails-templates/main/template.rb

Supported template options:

  • --api - create an api-only application

To apply the template on an existing application, run following rails command:

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=<addon name>

Available Addons:

  • docker
  • nginx
  • phrase
  • semaphore
  • bootstrap
  • slim
  • devise

After the template finishes generating all the files, run the following command to start the rails server.

make dev

Read more about Rails Application Template in the official Rails Guides.

Contribution Resources

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.

About

Nimble

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 or hire our team to help build your product.

rails-templates's People

Contributors

rosle avatar andyduong1920 avatar malparty avatar hoangmirs avatar olivierobert avatar longnd avatar rafayet-monon avatar sang-github avatar noor-ahmed avatar rafayetn avatar caherrerapa avatar carryall avatar ankitkalia1195 avatar tyrro avatar svnlto avatar yutna avatar mosharaf13 avatar junan avatar lahphim avatar przbadu avatar htoo-eain-lwin avatar fikrikarim avatar hanam1ni avatar tteerawat avatar bterone avatar tolsee 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.