Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
5cf519c
v0.2
aster-void Oct 3, 2024
39c5dbe
v0.2.1
aster-void Oct 3, 2024
3ba246a
v1.0 Release (#447)
KaichiManabe Oct 8, 2024
9d175dd
v1.0.1 release (#465)
KaichiManabe Oct 9, 2024
93f7014
メッセージ編集中に ctrl + enter で確定する (#471)
aster-void Oct 10, 2024
5ded743
keep-alive のスパンを 5 分から 2 分に短縮 (#470)
aster-void Oct 10, 2024
05e4436
[bugfix] 最初のチャットのメッセージが表示されない不具合を修正 (#469)
aster-void Oct 10, 2024
6ceaadc
よくある質問をSettings画面にも追加した (#477)
KaichiManabe Oct 11, 2024
11cdefb
HeaderのCourseMateIconをクリックすると、/homeに飛ぶようにした (#478)
KaichiManabe Oct 11, 2024
2e313de
freeze lockfile (#485)
aster-void Oct 22, 2024
deafc4d
cache token (#476)
aster-void Oct 23, 2024
9a72ceb
HOME で REJECT した/された人を出さない (#508)
aster-void Oct 23, 2024
f2cc33a
Fix zod error (#506)
aster-void Oct 27, 2024
704023e
prepare-deploy-server を修正 (#505)
aster-void Nov 1, 2024
f8a5087
Scraper (#487)
aster-void Nov 2, 2024
cfa0896
興味のある分野 (server のみ) (#488)
aster-void Nov 2, 2024
4784e7f
任意のメールアドレスでログインを可能にする (#509)
aster-void Nov 2, 2024
d3f1b30
Vite + React Router → Next.js (#512)
nakaterm Nov 5, 2024
7fc7fbf
fix web build (#514)
aster-void Nov 7, 2024
777afb4
delete package-lock.json (#513)
aster-void Nov 10, 2024
ea29b28
edit pull_request_template.md (#504)
aster-void Nov 10, 2024
09ed233
SERVER_ORIGIN, WEB_ORIGIN, WEB_ORIGIN_BUILD etc の代わりに CORS_ALLOW_ORIG…
aster-void Nov 10, 2024
d1829d7
基本的なコンポーネントを daisyUI に移行 (#515)
nakaterm Nov 10, 2024
045cffa
signup ページのブロックを忘れていたので追加 (#517)
nakaterm Nov 10, 2024
f762ce6
Next移行に伴う、リロード問題を解決 (#518)
KaichiManabe Nov 10, 2024
e6bcdc5
BottomBar を daisyUI に置き換え (#520)
nakaterm Nov 10, 2024
5bf37ba
install lefthook (#522)
aster-void Nov 11, 2024
20bb7b6
use object (#474)
aster-void Nov 11, 2024
92ce2e7
step4を修正 (#523)
KaichiManabe Nov 17, 2024
0b4eecc
細かいDaisyUI移行を実行 (#526)
KaichiManabe Nov 17, 2024
3b86cfb
CardをDaisyUIに移行 (#529)
GuY8528 Nov 17, 2024
2f3abb0
install lefthook via bun (#528)
aster-void Nov 23, 2024
14cb6f5
stop copying common (#530)
aster-void Nov 24, 2024
3268b1b
homeのdaisyUI対応 (#531)
GuY8528 Nov 30, 2024
4091b3f
ビルドエラーの修正とpre-commitのエラーの修正 (#533)
KaichiManabe Nov 30, 2024
f4b7e01
Fix/home daisy UI (#534)
GuY8528 Nov 30, 2024
18a6932
/chat/:idにアクセス可能に (#535)
KaichiManabe Nov 30, 2024
c521bfe
ハート要素を削除した (#536)
KaichiManabe Nov 30, 2024
25fc3ac
Friends タブを MUI → daisyUI に修正 (#525)
KaichiManabe Nov 30, 2024
eab434c
リクエストを送ったら、チャットでメッセージが送れるようになる (#538)
KaichiManabe Dec 2, 2024
b99f67a
KeepMemo (#444)
RRRyoma Dec 2, 2024
58d83b1
ユーザー名検索 (#524)
RRRyoma Dec 3, 2024
c9a8825
lefthook install が実行されないのを修正 (#541)
aster-void Dec 3, 2024
f5b27f3
チャットの並びをcreatedAtの時間で時系列順にした (#542)
KaichiManabe Dec 3, 2024
429422a
port (#550)
aster-void Dec 8, 2024
a0c394e
手動で index するのではなく、Queue (中身は Array) を使う (#472)
aster-void Dec 10, 2024
71d7850
fix rust ci (#552)
aster-void Dec 15, 2024
00fbea5
興味分野タグを User とともに取得 (#537)
nakaterm Dec 15, 2024
62a2b42
お知らせページを追加 運用はコードを直書き (#553)
KaichiManabe Dec 15, 2024
cfef516
unread badge (#547)
aster-void Dec 17, 2024
11e08b5
Feat/card with interests (#543)
GuY8528 Dec 28, 2024
dacc832
fixed websocket (#557)
aster-void Dec 28, 2024
0992737
create make command for deploy web (#551)
aster-void Dec 28, 2024
8b431da
fix Buffer and Uint8Array (#559)
aster-void Dec 28, 2024
221a678
add logging (#560)
aster-void Dec 28, 2024
316b949
give read default(false) (#558)
aster-void Dec 28, 2024
70a5fd9
検索画面から、リクエストを送れるようになった (#561)
KaichiManabe Dec 28, 2024
360b92e
チャットでの画像のアップロード HELP(CSS): 画像が同一行に複数個表示される (#503)
aster-void Dec 28, 2024
f978be9
log:ws: add more log (#563)
aster-void Dec 28, 2024
dfa120e
fix websocket not working on render (#566)
aster-void Dec 29, 2024
2237bc5
初期登録画面 の daisyUI 移行 (#519)
aster-void Jan 4, 2025
5214959
Cardの表示内容が正しく更新されるようにした (#556)
GuY8528 Jan 4, 2025
bd8df88
詳細ビュー (旧裏面) を作成 (#565)
nakaterm Jan 4, 2025
95af028
flake: overall improvement (#568)
aster-void Jan 7, 2025
69dab35
プロフィール編集の修正・興味分野編集の追加 (#527)
aster-void Jan 14, 2025
de1468f
header, main, footerのCSSがちゃんと分けられるようになった。 (#577)
KaichiManabe Jan 14, 2025
d87df0e
recommender を更新する (#575)
aster-void Jan 15, 2025
9d13aba
Cascade Interest on InterestSubject Deletion (#573)
aster-void Jan 17, 2025
060f582
fix flake (again) (#579)
aster-void Jan 19, 2025
e7801f6
trap kill 0 on EXIT rather than limiting it on SIGINT (#582)
aster-void Jan 19, 2025
70795ee
search by attrs (#580)
aster-void Jan 19, 2025
2fdf9e1
search by course (#587)
aster-void Jan 19, 2025
f8595b7
Message UI (#589)
RRRyoma Jan 19, 2025
11520c3
edit を setting に統合 (#585)
nakaterm Jan 19, 2025
c878913
sync db before running CI (#591)
aster-void Jan 21, 2025
2ab6e11
delete unused web/src (#592)
aster-void Jan 21, 2025
dfd95df
hack: fixed it sometimes not running on NixOS (#594)
aster-void Jan 21, 2025
7579db8
全体のCSSの再調整(特にチャット) (#584)
KaichiManabe Jan 21, 2025
27e7294
fixed image button not being focusable with tab (#593)
aster-void Jan 21, 2025
9b75357
Setting UI (#603)
RRRyoma Jan 21, 2025
4d836c5
Rust の CI を scraper/ に差分があるときのみ実行する (#581)
aster-void Jan 21, 2025
cdd7fdb
fixed home not loading (i'm stupid) (#604)
aster-void Jan 21, 2025
6286560
BottomNavigationのアイコンを修正 (#606)
KaichiManabe Jan 21, 2025
8d5f531
不要なerror.messageをすべて削除した。 (#611)
KaichiManabe Jan 21, 2025
882ac65
チュートリアル画面のレイアウトを修正 (#612)
nakaterm Jan 21, 2025
8bb074f
fixed home showing "sent like to all" while loading (#607)
aster-void Jan 21, 2025
bdebbd0
fixed 608: it was because it was loading auth state. (#613)
aster-void Jan 21, 2025
142d21e
fixed format (#616)
aster-void Jan 22, 2025
2ad09a5
center warning text in account deletion (#614)
aster-void Jan 22, 2025
b841fc3
add spinner while processing (and fix async bug) (#615)
aster-void Jan 23, 2025
b2cbf72
useAuthorizedData と useCustomizedSWR のドキュメントを改善する (#617)
aster-void Jan 23, 2025
307a077
カードの裏面削除・デザイン修正 (#564)
GuY8528 Jan 23, 2025
3d9fee4
全員にいいねを送りました!のスタイリング (#619)
nakaterm Jan 23, 2025
c312eb3
ヘッダーを新仕様に (#620)
nakaterm Jan 23, 2025
800d309
fix settings/course (#632)
aster-void Feb 11, 2025
0ed8678
fix settings profile (#631)
aster-void Feb 11, 2025
e755325
Home のデザイン修正・モバイルでの挙動修正 (#629)
nakaterm Feb 11, 2025
ab23221
`bun.lock` に移行と flake のアップデート、あと nix-prisma-utils を使う (#634)
aster-void Feb 11, 2025
4559ba1
hack: remove frozen lockfile (#638)
aster-void Feb 11, 2025
16b6519
remove: prisma exec (#639)
aster-void Feb 11, 2025
fe1104c
スマホ画面で、画像がダウンロードされている問題を解決 (#641)
KaichiManabe Feb 11, 2025
979bb0e
common: convert zod to peerDependency
aster-void Feb 11, 2025
30d8e33
bun: convert to workspaces from file: protocol
aster-void Feb 11, 2025
a5ca487
delele package-lock.json (#642)
aster-void Feb 15, 2025
3387fb3
SQL のログを出力 (#648)
nakaterm Feb 15, 2025
5d3cacb
migrate most scripts from make to bun (#643)
aster-void Feb 15, 2025
3fd17be
flake: update (#640)
aster-void Feb 15, 2025
b381a20
fix: prisma couldn't build with --sql (#646)
aster-void Feb 15, 2025
325d3c3
delete type Result and try catch (#647)
aster-void Feb 15, 2025
03b6699
Express のエラーハンドリングを修正 (#650)
nakaterm Feb 16, 2025
7adbff0
hotfix: don't throw if lastMessage is not found (#651)
aster-void Feb 16, 2025
e964205
Migrate to hono (#653)
aster-void Feb 19, 2025
266f2e4
fix: get by id (#661)
aster-void Feb 20, 2025
8dd0a80
hotfix: cannot authorize (#662)
aster-void Feb 20, 2025
f27d390
deploy: upgrade bun before prepare (#660)
aster-void Feb 20, 2025
353e040
授業選択ダイアログのデザイン改善 (#663)
RRRyoma Feb 20, 2025
49ef045
perf: cache guid -> userid (#658)
aster-void Feb 20, 2025
8e1dd89
非効率な部分を削除 (#668)
KaichiManabe Feb 20, 2025
7a2d207
Homeでユーザー取得時にloading画面にする (#665)
RRRyoma Feb 20, 2025
d699003
prisma の includeにjoinを追加した (#666)
KaichiManabe Feb 20, 2025
a32bb6d
fix(deploy): bun can now ignore lockfile (#669)
aster-void Feb 20, 2025
e74df01
feat: use SSE instead of ws (#667)
aster-void Feb 20, 2025
59a4c71
fix: module not found (#670)
aster-void Feb 20, 2025
814ba36
Confirmation UI (#671)
RRRyoma Feb 21, 2025
3d29d99
fix: delete bun.lock from sub packages (#675)
aster-void Feb 27, 2025
650f6d4
UI renew (#673)
RRRyoma Mar 6, 2025
c952a73
Homeアニメーション改善 (#659)
GuY8528 Mar 6, 2025
ddef0c6
fix hono Context (#677)
GuY8528 Mar 6, 2025
99c37a5
deploy (#676)
aster-void Mar 6, 2025
363e33b
static generation (#649)
nakaterm Mar 6, 2025
721bcd0
マイグレーションを追加 (#679)
KaichiManabe Mar 6, 2025
7ecfc84
Update deploy.yml (#680)
KaichiManabe Mar 6, 2025
ecde563
Resolve release error (#682)
KaichiManabe Mar 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@
"words": [
"autoincrement",
"bunx",
"chrono",
"coursemate",
"daisyui",
"datasource",
"direnv",
"ECCS",
"isready",
"lockb",
"mytheme",
"notistack",
"psql",
"qiita",
"reqwest",
"safify",
"supabase",
"swiper"
"swiper",
"lefthook",
"stdenv",
"rustc",
"pkgs",
"nixpkgs",
"libquery"
],
"dictionaries": [
"softwareTerms",
Expand All @@ -31,6 +41,7 @@
],
"ignorePaths": [
"flake.*",
"nix/*",
"**/.git/**",
"**/node_modules/**",
"server/target/**",
Expand All @@ -39,6 +50,11 @@
"**/bun.lockb",
"**/*.svg",
"**/migration.sql",
"**/data.json"
"**/data.json",
"**/Cargo.*",
"scraper/target",
"**/rust-toolchain.toml",
"web/out",
"**/tsconfig.tsbuildinfo"
]
}
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.env*
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SQL_GENERATE_URL=postgres://sql-url
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
watch_file ./server/prisma.nix
# I recommend using nix-direnv: https://github.com/nix-community/nix-direnv
if command -v nix;
then
Expand Down
9 changes: 0 additions & 9 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
<!--変更したい場合は、`/.github/pull_request_template.md` を修正して下さい。-->
# PRの概要

<!-- 変更の目的 もしくは 関連する Issue 番号 -->
<!-- 以下のように書くと Issue にリンクでき、マージ時に自動で Issue を閉じられる-->
<!-- closes #001 -->

## 具体的な変更内容
<!-- ビューの変更がある場合はスクショによる比較などがあるとわかりやすい -->

## 影響範囲
<!-- この関数を変更したのでこの機能にも影響がある、など -->

## 動作要件
<!-- 動作に必要な 環境変数 / 依存関係 / DBの更新 など -->

## 補足
<!-- レビューをする際に見てほしい点、ローカル環境で試す際の注意点、など -->

## レビューリクエストを出す前にチェック!

Expand Down
61 changes: 35 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,39 @@ on:

env:
DATABASE_URL: ${{ secrets.DATABASE_URL_FOR_PRISMA_SQL_GENERATION }}
DIRECT_URL: ${{ secrets.DATABASE_URL_FOR_PRISMA_SQL_GENERATION }}
NEXT_PUBLIC_API_ENDPOINT: "sample"
NEXT_PUBLIC_FIREBASE_API_KEY: "sample"
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: "sample"
NEXT_PUBLIC_FIREBASE_PROJECT_ID: "sample"
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: "sample"
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: "sample"
NEXT_PUBLIC_FIREBASE_APP_ID: "sample"
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: "sample"
jobs:
sync-db:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun i --frozen-lockfile
- run: bunx prisma db push
working-directory: server

build:
name: Build
runs-on: ubuntu-latest
needs: [sync-db]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: make setup-ci
- run: make build
- run: bun install --frozen-lockfile
- run: bun run build

biome:
name: Code style check via Biome
Expand All @@ -31,8 +53,8 @@ jobs:
with:
version: latest

- run: make setup
- run: biome check
- run: bun install --frozen-lockfile
- run: bun style:check

type-check:
name: Type Check
Expand All @@ -42,12 +64,8 @@ jobs:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: make setup-ci

- run: bunx tsc --noEmit
working-directory: web
- run: bunx tsc --noEmit
working-directory: server
- run: bun install --frozen-lockfile
- run: bun type

spell-check:
name: Spell Check
Expand All @@ -58,33 +76,24 @@ jobs:
with:
bun-version: latest

- run: make setup-ci
- run: make spell-check
- run: bun install --frozen-lockfile
- run: bun spell .

test:
name: Bun Test
runs-on: ubuntu-latest
needs: [sync-db]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: make setup-ci
- run: make test
- run: bun install --frozen-lockfile
- run: bun run test

deploy-test-web:
name: Deploy Test (web)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: oven-sh/setup-bun@v2
- run: make prepare-deploy-web
- run: test `ls web/dist | wc -l` != 0

deploy-test-server:
name: Deploy Test (server)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: oven-sh/setup-bun@v2
- run: make prepare-deploy-server
- run: bun prepare:deploy:web
- run: test `ls web/.next | wc -l` != 0
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy
on:
push:
branches:
- release

jobs:
deploy:
name: Deploy Server to Fly.io
runs-on: ubuntu-latest
env:
SQL_GENERATE_URL: ${{ secrets.DATABASE_URL_FOR_PRISMA_SQL_GENERATION }}

steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --build-arg SQL_GENERATE_URL=$SQL_GENERATE_URL --access-token "${{ secrets.FLY_DEPLOY_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/keep-alive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Keep Alive

on:
schedule:
- cron: "*/5 * * * *"
- cron: "*/2 * * * *"
workflow_dispatch:

env:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Rust
on:
pull_request:
paths:
- scraper/**
push:
branches: [main]
paths:
- scraper/**

jobs:
all:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
RUSTFLAGS: -D warnings
defaults:
run:
working-directory: scraper
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/
~/.rustup/
scraper/target
key: cargo-cache-${{ github.job }}-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.82.0
components: clippy,rustfmt
- run: cargo build
- run: cargo build --release
- run: cargo test
- run: cargo clippy
- run: cargo fmt --check
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/node_modules
.env
/.direnv
/.husky

# Logs
logs
*.log
Expand All @@ -7,11 +12,6 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand All @@ -23,5 +23,4 @@ dist-ssr
*.sln
*.sw?

.env
/.direnv
tsconfig.tsbuildinfo
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# syntax = docker/dockerfile:1

ARG BUN_VERSION=1.2.2
FROM oven/bun:${BUN_VERSION} AS base
LABEL fly_launch_runtime="Bun/Prisma"
ENV NODE_ENV="production"

# Throw-away build stage to reduce size of final image
FROM base AS build

WORKDIR /build
ARG SQL_GENERATE_URL
RUN test -n "${SQL_GENERATE_URL}"
ENV DATABASE_URL=$SQL_GENERATE_URL
ENV DIRECT_URL=$SQL_GENERATE_URL
COPY . .
RUN --mount=type=cache,target=~/.bun/install bun install --frozen-lockfile --ignore-scripts
RUN cd server; bun prisma generate --sql
RUN cd server; bun run :build


# Final stage for app image
FROM base AS runner
WORKDIR /srv

# Copy built application
COPY --from=build /build/server/target/index.js /srv/index.js
COPY --from=build /build/node_modules/.prisma/client /node_modules/.prisma/client
COPY --from=build /build/node_modules/@img /node_modules/@img

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD [ "bun", "run", "./index.js" ]
Loading