Skip to content

KOH6/rails_ec

Repository files navigation

README

ECサイト課題の資材。

開発環境setup

docker compose build
docker compose run --rm web bin/setup
docker compose run --rm web yarn install
docker compose up
docker compose exec web rails db:migrete
docker compose exec web rails db:seed

http://localhost:3000

本番環境Herokuでのsetup

# アプリケーション作成
heroku apps:create
# アプリケーションリネーム
heroku apps:rename hc-koh-rails-ec
# DB作成
heroku addons:create heroku-postgresql:mini
# 資材push
git push heroku main
# DB migrate
heroku run rails db:migrate
# テストデータ作成
heroku run rails db:seed

rubocop

auto correct

docker compose run --rm web bundle exec rubocop -A

htmlbeautifier

erbのフォーマッター

docker compose run --rm web bin/htmlbeautifier

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published