Skip to content

CODEBASE-Okinawa/codebase_books_rails_react_backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

291 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby 3.1 and Rails 7.0 and MySQL 8.0

Ruby3.1, Ruby on Rails 7.0, MySQL 8.0 の開発環境

Docker Compose と devcontainer で実装

環境構築方法は以下の2つがあります

  • Dokcer compose で構築する
  • VSCode devcontainerで構築する

1. Docker Compose で構築する

初回構築

$ make build

サーバー立ち上げ

$ docker compose up app

サーバー内でシェルを実行する

サーバーを立ち上げた状態で以下を実行

$ docker compose exec app bash

2. VSCode devcontainer で構築する

remote container のインストール

※ devcontainer に必要なツールのインストールはこちら

devcontainerの起動

  1. VSCodeを開き、 Reopen in Container を実行する

サーバーの立ち上げ

devcontainer上でTerminalを開き、コマンドを実行する

$ bin/rails s

Debugging

devcontainer上で、 デバッグを実行 を実行する(ショートカットキー: F5)

デバッグを実行 を利用するとVSCode Debuggingが利用可能

debugging

参考: VSCode rdbg Ruby Debugger

VSCode extensions

構成

docker compose で構成

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 58.1%
  • HTML 28.1%
  • JavaScript 10.1%
  • Dockerfile 2.0%
  • CSS 0.9%
  • Makefile 0.7%
  • Shell 0.1%