Skip to content

canisterism/clip-games-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clip-games-web

Development

初回やること

  • バックエンド用のクレデンシャルのキーであるdevelopment.keyを1passwordから取得して、./backend/config/credentials/development.keyに配置する。
  • フロントエンドのクレデンシャルの.env.localを1passwordから取得して、./frontend/.env.localに配置する。
$ cd backend
# 下記コマンドで開ければOK
$ EDITOR='code --wait' rails credentials:edit --environment development
# api.localhost にアクセスできるようにする
echo "127.0.0.1 api.localhost" >> /etc/hosts

機密情報をコミットしないようにする

https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit

Graphql周辺

graphqlのスキーマ更新

$ cd backend
$ rails graphql:schema:idl 

※ /backendに生成されるが、ルートに移動させないとfrontend側で認識されないので注意

graphqlのコード自動生成

$ cd ../frontend
$ yarn codegen