Git Product home page Git Product logo

nix-rails7's Introduction

A nix flake based Rails 7 development environment powered by devenv.sh.

I made this as their default setup is not based on flakes, and while they have good docs, I wanted something that works with a single nix run invocation for my base defaults.

This is the very base of what I use on every new project:

  • latest ruby + rails
  • tailwindcss
  • language servers for rb+html+js
  • a linter (rubocop)
  • factory_bot + faker for testing

Usage

To set up everything in one go, run:

PROJECT_NAME=candies nix run github:qirpi/nix-rails7
cd candies
rails new .

NOTE: when prompted to overwrite template files, say no!

If you need more control, use just the template:

mkdir $PROJECT_NAME && cd $PROJECT_NAME
git init --quiet && git branch -M main

nix flake init --template github:qirpi/nix-rails7
git add .
direnv allow . 
rails new .

Dependencies:

nix-rails7's People

Watchers

em429 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.