Skip to content

Commit 1ceda35

Browse files
Merge pull request #5 from su-its/feat/frontend/project-foundation
Feat/frontend/project-foundation
2 parents c53b254 + c6475d1 commit 1ceda35

31 files changed

+476
-0
lines changed

typing-app/.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.next
2+
docs
3+
node_modules
4+
README.md

typing-app/.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"next/core-web-vitals",
4+
"prettier"
5+
]
6+
}

typing-app/.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts

typing-app/.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.next/
2+
node_modules/
3+
out/
4+
5+
bun.lockb
6+
.eslintrc.json
7+
eslint.config.js
8+
package-lock.json

typing-app/.prettierrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"singleQuote": false,
6+
"semi": true,
7+
"quoteProps": "as-needed",
8+
"jsxSingleQuote": false,
9+
"trailingComma": "es5",
10+
"bracketSpacing": true,
11+
"bracketSameLine": false,
12+
"arrowParens": "always",
13+
"proseWrap": "preserve",
14+
"endOfLine": "lf",
15+
"embeddedLanguageFormatting": "off"
16+
}

typing-app/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM oven/bun:slim as base
2+
WORKDIR /app
3+
ENV NODE_ENV production
4+
5+
FROM base as deps
6+
COPY package.json bun.lockb ./
7+
RUN bun install
8+
9+
# bypass node image on build and use bun on runtime
10+
# https://github.com/oven-sh/bun/issues/4795
11+
FROM node:20.11-slim as build
12+
WORKDIR /app
13+
14+
COPY --from=deps /app/node_modules ./node_modules
15+
COPY . .
16+
RUN npm run build
17+
18+
FROM base as final
19+
USER bun
20+
21+
COPY --from=build --chown=bun:bun /app/public ./public
22+
COPY --from=build --chown=bun:bun /app/.next/standalone ./
23+
COPY --from=build --chown=bun:bun /app/.next/static ./.next/static
24+
25+
EXPOSE 3000
26+
ENV PORT 3000
27+
ENV HOSTNAME "0.0.0.0"
28+
29+
CMD ["bun", "server.js"]

typing-app/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

typing-app/bun.lockb

155 KB
Binary file not shown.

typing-app/components.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/libs/shadcn/index"
16+
}
17+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# フロントエンドディレクトリ構成
2+
3+
## src ディレクトリ
4+
5+
- `src`ディレクトリは、フロントエンドのソースコードを格納するディレクトリです。
6+
7+
### app ディレクトリ
8+
9+
- **本アプリケーションは App Router を採用しています。**
10+
- `app`ディレクトリは、アプリケーションのエントリーポイントとなるファイルを格納するディレクトリです。
11+
12+
### components ディレクトリ
13+
14+
- `components`ディレクトリは、アプリケーションで使用するコンポーネントを格納するディレクトリです。
15+
16+
### config ディレクトリ
17+
18+
- `config`ディレクトリは、アプリケーションの設定ファイルを格納するディレクトリです。
19+
20+
### constants ディレクトリ
21+
22+
- `constants`ディレクトリは、アプリケーションで使用する定数を格納するディレクトリです。
23+
24+
### libs
25+
26+
- `libs`ディレクトリは、アプリケーションで使用するライブラリを格納するディレクトリです。
27+
28+
### types
29+
30+
- `types`ディレクトリは、アプリケーションで使用する型定義を格納するディレクトリです。
31+
32+
### utils
33+
34+
- `utils`ディレクトリは、アプリケーションで使用するユーティリティ関数を格納するディレクトリです。

0 commit comments

Comments
 (0)