trathailoi / rails-learning

A normal repo for studying Ruby on Rails, nothing special

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails Learning

Note:

  • If you don't want to install Ruby and Rails on your machine, that's fine. You can run the application inside Docker containers, no need to install anything but Docker on your machine.
  • You can find all commands and tasks in the Makefile file.

Getting started

Prerequisites

  • Docker (it's mandatory, because we will run PostgreSQL in container, it will probably be the same for Redis, Elasticsearch, Mailhog, .etc)
  • Ruby 3.1.2 (optional, as we can have it in container)
  • Rails 7.0.2.4 (optional, as we can have it in container)

Recommended IDE Setup

Tasks and commands

Note: I'm on Mac, so those commands below may not work expectedly on Windows.

Run application

  • without Docker:

    make start-dev
  • with Docker:

    make start-dev-docker

Unit test

  • with Docker:

    make unit-test-docker
  • without Docker:

    make unit-test

Note: The database which is used for testing will be cleaned up (teardown) after every test run.

Commit message convention

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • docs: Documentation only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that neither fixes a bug nor adds a feature
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • test: Adding missing tests or correcting existing tests,
  • revert: Revert,
  • wip: Work in progress, not finished yet

About

A normal repo for studying Ruby on Rails, nothing special


Languages

Language:Ruby 72.1%Language:HTML 19.4%Language:CSS 2.7%Language:JavaScript 1.9%Language:Makefile 1.6%Language:Shell 1.3%Language:Dockerfile 1.0%