https://github.com/watasuke102/tagether
Share your self-made exam with classmates
https://github.com/watasuke102/tagether
nextjs react studying
Last synced: 4 months ago
JSON representation
Share your self-made exam with classmates
- Host: GitHub
- URL: https://github.com/watasuke102/tagether
- Owner: watasuke102
- License: mit
- Created: 2020-12-20T01:59:28.000Z (over 5 years ago)
- Default Branch: dev
- Last Pushed: 2025-12-03T13:19:36.000Z (7 months ago)
- Last Synced: 2025-12-05T09:43:47.264Z (7 months ago)
- Topics: nextjs, react, studying
- Language: TypeScript
- Homepage:
- Size: 3.02 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# TAGether - Share your self-made exam with classmates

## What's this
テスト対策問題のような問題を作成し、クラスの人と共有できるようなサービスです。
## How to use
1. [Google Cloud Console](https://console.cloud.google.com/apis/credentials/oauthclient) でOAuthクライアントを作成
あるいは後述のenv.tsにおいて、`DISABLE_LOGIN_FEATURE_ON_DEVELOPING`をtrueに設定する
1. `cp sample-env.ts env.ts`
1. env.tsを編集し、OAuthのclient idなどを適切に設定する
1. `./start.sh` (本番環境は`./start.sh product`)
## docker-compose について
最新情報は compose.yaml をチェックしてね
| 名前 | ポート |
| ------------------------ | ------ |
| フロントエンド (Next.js) | 3009 |
| phpMyAdmin | 8888 |
| MySQL | 3334 |
## ディレクトリ構造
### /public
favicon など
### /src
React (Next.js) によるフロントエンド
- app/
Next.js App router
- assets/
アイコンのsvg(基本的に[Google Fonts](https://fonts.google.com/icons)から取ってきたもの)
- db/
drizzleのschemaとMySQLへ接続する関数
- components/
- common/ → 共通して使うコンポーネント
- features/ → 機能ごとに分ける
- tests/
Vitestによるテスト
- types/
型定義
- utils/
JSXを返却しない関数群
### /docker
docker compose 用
- mysql/
DB 初期化の `db_init.sql`
## LICENSE
Dual-licensed; MIT (`LICENSE-MIT` or [The MIT License – Open Source Initiative](https://opensource.org/license/mit/)) or MIT SUSHI-WARE LICENSE (`LICENSE-MIT_SUSHI.md`)