AutonomousVehicleControlBeginnersGuide
Python sample codes and documents about Autonomous vehicle control algorithm. This project can be used as a technical guide book to study the algorithms and the software architectures for beginners.
翻訳待ち
No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗ITF+ と SEA/J の練習問題を解くことができる Web サイトのソースコードです。
デモサイト: https://quizsite-beta.vercel.app/
の模擬問題に挑戦できる問題練習サイトです。
| ページ | 内容 |
|---|---|
/ | トップページ |
/itf | ITF+ 問題ページ |
/itf/chapter/[chapter] | ITF+ の各章ごとの練習問題 |
/seaj | SEA/J 問題ページ |
/seaj/chapter/[chapter] | SEA/J の各章ごとの練習問題 |
範囲外のページ(?page=999 など)や存在しない章は 404 になります。
layout.tsx --- 全ページ共通レイアウトpage.tsx --- トップページpage.tsx --- ITF+ の問題ページchapter/[chapter]/page.tsx --- ITF+ の章ごとの問題ページpage.tsx --- SEA/J の問題ページchapter/[chapter]/page.tsx --- SEA/J の章ごとの問題ページQuiz --- クイズ全体コンポーネントQuestionCard --- 問題表示コンポーネントResultPanel --- 正解数表示Pagination --- ページ送りStickyHeader --- 問題ヘッダーjson_to_microcms_csv.py --- JSON → CSV 変換ping-microcms.cjs --- microCMS 接続確認git clone https://github.com/KimiyukiYamauchi/quizsite.git
cd quizsite
npm install
プロジェクト直下に .env.local を作成し、microCMS の接続情報を設定します。
MICROCMS_SERVICE_DOMAIN=xxxxxxxx
MICROCMS_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxx
| 変数名 | 内容 |
|---|---|
MICROCMS_SERVICE_DOMAIN | サービスドメイン(https://xxxxxxxx.microcms.io の xxxxxxxx の部分) |
MICROCMS_API_KEY | microCMS 管理画面の「API キー」で発行したキー(GET 権限があれば OK) |
.env.local は .gitignore 済みです。API キーはコミットしないでください。MICROCMS_SERVICE_DOMAIN / MICROCMS_API_KEY が未設定です というエラーになります。接続できるかどうかは、次のコマンドで確認できます。
node scripts/ping-microcms.cjs
# itf-questions: OK (xx件)
# seaj-questions: OK (xx件)
npm run dev
ブラウザで以下にアクセス:
http://localhost:3000
| コマンド | 内容 |
|---|---|
npm run build | 本番用ビルド |
npm run start | ビルド結果でサーバーを起動 |
npm run lint | ESLint によるコードチェック |
リスト形式の API を 2 つ使います。
| エンドポイント | 内容 |
|---|---|
itf-questions | ITF+ の問題 |
seaj-questions | SEA/J の問題 |
どちらも同じフィールド構成です。
| フィールド ID | 種類 | 内容 |
|---|---|---|
chapter | テキスト | 章の名前(章ごとのページの絞り込みに使用) |
text | テキスト | 問題文 |
choices | 繰り返し | 選択肢。各要素は selectId(a, b, c…)と text |
answerId | 繰り返し | 正解。各要素は answerId(a, b, c…)。複数指定で複数正解 |
explanation | テキスト | 解説(回答後に表示) |
問題データを JSON で用意している場合は、scripts/json_to_microcms_csv.py で microCMS の CSV インポート用ファイルに変換できます。
python scripts/json_to_microcms_csv.py <input_json> <output_csv>