Git Product home page Git Product logo

rails7-startkit's Introduction

Rails 7 Startkit

Rails 7 Application is Ready in Minutes!

What Is That?

Rails App in a Docker container with some popular preinstalled tools.

Why Do I Need It?

Save hours, days or weeks on setting up a typical Rails app.

What Cases for Using It?

  • You start new Rails project
  • You need a playground for experiments
  • You learn Rails and related technologies
  • You are going to write a new article about Rails

What is under the hood?

  • Ruby 3.1.2
  • Rails 7.0.5
  • PgSQL (Database)
  • Redis (Cache)
  • Sidekiq (Async and Delayed Jobs)
  • Bootstrap 5
  • jQuery
  • Font Awesome 6
  • I18n-js
  • Select2 JS
  • Rubocop

Prerequisites

On your host you have:

  • Ruby 2+
  • Docker
  • Git

How to start?

  • git clone [email protected]:phucdx/startkit.git
  • cd startkit
  • sudo docker-compose build
  • sudo chown -R 999:999 ./db/PGSQL
  • docker-compose up

To Run All Containers

From the root of the project

docker compose -f docker-compose.yml up -d
Output
[+] Running 4/4
 ✔ Container startkit-psql          Started
 ✔ Container startkit-redis         Started
 ✔ Container startkit-mailcatcher   Started
 ✔ Container startkit-app           Started

To See Running Containers

From the root of the project

Output
docker ps --format 'table {{.Names}}\t{{.ID}}\t{{.Image}}\t{{.Ports}}'
NAMES                  CONTAINER ID        IMAGE                    PORTS
startkit-app           1f13e98cdc3b        startkit_app             0.0.0.0:3000->3000/tcp
startkit-redis         209a18dfba82        redis:7.0.5-alpine       6379/tcp
startkit-psql          dde19fa271ed        postgres:15.1-bullseye   0.0.0.0:5432->5432/tcp
startkit-mailcatcher   d4db8d708a03        schickling/mailcatcher   1025/tcp, 0.0.0.0:1080->1080/tcp

To Get In a Container

Rails

docker exec -it startkit-app bash

PgSQL

docker exec -it startkit-psql bash

Redis

docker exec -it startkit-redis ash

MailCatcher

docker exec -it startkit-mailcatcher ash

To Stop All Containers

From the root of the project

docker compose -f docker-compose.yml down
Output
[+] Running 4/4
 ✔ Container startkit-app           Removed
 ✔ Container startkit-redis         Removed
 ✔ Container startkit-mailcatcher   Removed
 ✔ Container startkit-psql          Removed

Export i18n-js

rake i18n:export

rails7-startkit's People

Contributors

phucdx avatar dangxuanphuc avatar

Stargazers

 avatar

Watchers

 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.