Skip to content

Shirasawa3/hackathon-2024-05

Repository files navigation

hackathon_2024_5_team_b

番場・白澤チーム

制作物の概要

image ユーザー用画面 image 管理者用画面 image

環境構築

PostgreSQL

# インストール
brew install postgresql

# 起動
brew services start postgresql

# ユーザー作成&DB作成
createuser hackathon
createdb hackathon-dev -O hackathon
createdb hackathon-test -O hackathon

DB hackathon-dev, hackathon-test の存在を確認

% psql -l
      Name      |   Owner    | Encoding | Collate | Ctype |     Access privileges
----------------+------------+----------+---------+-------+---------------------------
 hackathon-dev  | hackathon  | UTF8     | C       | C     |
 hackathon-test | hackathon  | UTF8     | C       | C     |

以下のコマンドで問題なくPostgreSQLに入れたら成功

psql -h localhost -p 5432 -U hackathon -d hackathon-dev
psql -h localhost -p 5432 -U hackathon -d hackathon-test

デフォルトのユーザーでログイン

# PostgreSQL に入り,ユーザー "hackathon" に DB 作成の権限付与
% psql -U <ユーザー名> -d postgres
postgres=# ALTER ROLE hackathon WITH CREATEDB;
ALTER ROLE
postgres=# exit
# PostgreSQL を再起動
% brew services restart postgresql

参考

rbenv

brew install rbenv ruby-build
rbenv init
echo 'eval "$(~/.rbenv/bin/rbenv init - zsh)"' >> ~/.zshrc
rbenv install 3.2.2

GitHubからclone

git clone [email protected]:techouse-inc/hackathon_2024_5_team_b.git
cd hackathon_2024_5_team_b

これ以降はリポジトリ内で作業

bundle install

gem install bundler
bundle install

DB初期化

sh scripts/init_db.zh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages