Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ client/*.ts
client/*.js
client/wrangler.toml
server/dist
bun.lock
compose.yml
shell.nix
CLAUDE.local.md
biome.jsonc
1 change: 0 additions & 1 deletion .envrc

This file was deleted.

28 changes: 25 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,28 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun biome ci
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npx biome ci
client-build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: cd client && bash build.sh
server-build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: cd server && npm run build
77 changes: 77 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# イツヒマ

![ロゴ](./logo.png)

## 概要

とりあえずみんなの空いている時間を訊いてから、何を何時間やるか決めたい。そんな仲間うちでの日程調整に最適なツールです。

## 開発

### 要件

- Node.js
- npm
- Docker (開発用 DB のみに使用)

### セットアップ

依存関係のインストール

```sh
npm ci
```

`server/.env.sample` をコピーして `server/.env` を作成

`client/.env.local.sample` をコピーして `client/.env.local` を作成

開発用データベースの起動

```sh
docker compose up
```

スキーマの反映

```sh
cd server
npx prisma migrate dev
```

### 起動

開発用データベースの起動

```sh
docker compose up
```

サーバー側とクライアント側をそれぞれ起動

```sh
npm run dev:server
```

```sh
npm run dev:client
```

cloudflare functions が必要な場合

```sh
npm run dev:functions
```

http://localhost:5173 にアクセスします。



### コードスタイル

コードのリント・フォーマット

```sh
npm run check
npm run fix
```
25 changes: 16 additions & 9 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"ignore": ["dist", "node_modules"]
"includes": ["**", "!**/dist", "!**/node_modules"]
},
"formatter": {
"enabled": true,
"lineWidth": 120,
"indentStyle": "space",
"indentWidth": 2
},
"organizeImports": {
"enabled": true
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnknownProperty": "off"
},
"complexity": {
"noForEach": "off"
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
},
"a11y": {
"useButtonType": "off"
"nursery": {
"useSortedClasses": "warn"
}
}
},
Expand Down
1,085 changes: 0 additions & 1,085 deletions bun.lock

This file was deleted.

7 changes: 7 additions & 0 deletions client/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# TODO: common のみに依存するようにする
cd ..
npm ci
cd server
npm run build
cd ../client

if [[ "$CF_PAGES_BRANCH" == "main" ]]; then
npm run build
else
Expand Down
7 changes: 1 addition & 6 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
"build:local": "tsc -b && vite build --mode dev",
"build:preview": "tsc -b && vite build --mode preview",
"build": "tsc -b && vite build",
"lint": "eslint .",
"format": "prettier . --check",
"lint:fix": "eslint . --fix",
"format:fix": "prettier . --write",
"preview": "vite preview"
},
"dependencies": {
Expand All @@ -37,14 +33,13 @@
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250610.0",
"@eslint/js": "^9.21.0",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"daisyui": "^5.0.3",
"globals": "^15.15.0",
"hono": "^4.9.6",
"typescript": "~5.7.2",
"typescript-eslint": "^8.24.1",
"vite": "^6.3.5"
}
}
2 changes: 1 addition & 1 deletion client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BrowserRouter, Outlet, Route, Routes } from "react-router";
import SubmissionPage from "./pages/eventId/Submission.tsx";
import HomePage from "./pages/Home.tsx";
import LandingPage from "./pages/Landing.tsx";
import NotFoundPage from "./pages/NotFound.tsx";
import ProjectPage from "./pages/Project.tsx";
import SubmissionPage from "./pages/eventId/Submission.tsx";

export default function App() {
return (
Expand Down
Loading