Skip to content

Commit

Permalink
chore: Update environment variables and add Google login configuration (
Browse files Browse the repository at this point in the history
  • Loading branch information
ttizze authored Jul 21, 2024
1 parent cc37e37 commit c6c9c17
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,27 @@ EveEve(Everyone Translate Everything)は、インターネットに公開さ
cd web
bun i
```
3. googleログインの設定をする必要があります。
https://console.cloud.google.com/apis
設定方法は以下のページを参考にしてください
https://developers.google.com/identity/sign-in/web/sign-in?hl=ja
https://zenn.dev/yoiyoicho/articles/c44a80e4bb4515#google%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%AE%E5%85%AC%E5%BC%8F%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88%E3%82%92%E8%AA%AD%E3%82%80

承認済みのリダイレクトURIには
http://localhost:5173/api/auth/callback/google
を設定してください

クライアントIDとクライアントシークレットを取得してください

3. 環境変数ファイルを作成し、必要な値を設定します:
```
cp .env.example .env
```
`.env` ファイルを開き、以下の変数を適切な値に設定してください:
- SESSION_SECRET
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET

4. dockerを起動します:
```
docker compose up -d
Expand All @@ -65,13 +80,12 @@ EveEve(Everyone Translate Everything)は、インターネットに公開さ

## 貢献方法
翻訳、プログラミング、デザイン、ドキュメンテーションなど、あらゆる形の貢献を歓迎します。現在特に以下の分野での貢献を求めています:
- 複数フォーマット対応の実装

- PDF等、複数フォーマット入力対応の実装
- 文字サイズや色の変更機能

貢献する前に、CONTRIBUTING.md ファイルをお読みください。

## 既知の制限事項
- 現在はLLMによる機械翻訳のみをサポートしており、人間によるレビュー機能はありません。
- 出力フォーマットは現在限られています。
- 長文テキストの処理に制限があります。

Expand Down
3 changes: 3 additions & 0 deletions web/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
DATABASE_URL="postgres://postgres:password@localhost:5432/postgres"
SESSION_SECRET=
CLIENT_URL='http://localhost:5173'
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
2 changes: 1 addition & 1 deletion web/app/routes/_index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
MetaFunction,
} from "@remix-run/node";
import { Form } from "@remix-run/react";
import { FaDiscord, FaGithub } from "react-icons/fa"; // react-iconsをインストールしてください
import { FaDiscord, FaGithub } from "react-icons/fa";
import { typedjson, useTypedLoaderData } from "remix-typedjson";
import { Header } from "~/components/Header";
import { Button } from "~/components/ui/button";
Expand Down
5 changes: 0 additions & 5 deletions web/app/routes/_index/types.ts

This file was deleted.

0 comments on commit c6c9c17

Please sign in to comment.