{"id":16738081,"url":"https://github.com/dc7290/nextjs-microcms-blog","last_synced_at":"2025-05-08T16:56:01.222Z","repository":{"id":37006226,"uuid":"361108749","full_name":"dc7290/nextjs-microcms-blog","owner":"dc7290","description":"microCMSのブログコードをNext.jsで構築したものです。","archived":false,"fork":false,"pushed_at":"2025-05-06T03:49:13.000Z","size":690,"stargazers_count":55,"open_issues_count":14,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-08T16:55:56.191Z","etag":null,"topics":["microcms","nextjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dc7290.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-24T08:21:40.000Z","updated_at":"2024-10-22T12:11:04.000Z","dependencies_parsed_at":"2023-12-16T02:35:42.359Z","dependency_job_id":"abc94ddd-33bf-4c5c-ba96-e1f8d5c2f9ab","html_url":"https://github.com/dc7290/nextjs-microcms-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc7290%2Fnextjs-microcms-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc7290%2Fnextjs-microcms-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc7290%2Fnextjs-microcms-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc7290%2Fnextjs-microcms-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dc7290","download_url":"https://codeload.github.com/dc7290/nextjs-microcms-blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253112074,"owners_count":21856070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["microcms","nextjs"],"created_at":"2024-10-13T00:29:11.695Z","updated_at":"2025-05-08T16:56:01.183Z","avatar_url":"https://github.com/dc7290.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 公式 microCMS ブログ\n\nサイト: https://blog.microcms.io/\nソースコード: https://github.com/wantainc/microcms-blog\n\n## 機能\n\n- 記事一覧\n- カテゴリー別記事一覧\n- 人気の記事一覧\n- 最新の記事一覧\n- 検索\n- パンくずリスト\n- 記事詳細\n  - 目次\n  - 著者\n  - SNS シェアボタン\n  - 下書きプレビュー\n  - 関連記事\n- バナー\n- Google Analytics\n- サイトマップ\n- RSS\n\n## 追加予定機能\n\n- PWA\n\n## 技術構成\n\n- Next（SSG）\n- microCMS（コンテンツ）\n- Vercel（Hosting, Functions）\n- ESLint\n- Prettier\n- PostCSS\n- aspida\n- pathpida\n- SWR\n\n## microCMS の API スキーマ設定\n\n### ブログ\n\nendpoint: blog  \ntype: リスト形式\n\n| フィールド ID | 表示名     | 種類                        | 必須  |\n| ------------- | ---------- | --------------------------- | ----- |\n| title         | タイトル   | テキストフィールド          | true  |\n| category      | カテゴリー | コンテンツ参照 - カテゴリー | true  |\n| toc_visible   | 目次       | 真偽値                      | true  |\n| body          | 本文       | リッチエディタ              | true  |\n| description   | 概要       | テキストフィールド          | true  |\n| ogimage       | OGP 画像   | 画像                        | true  |\n| writer        | 著者       | コンテンツ参照 - 著者       | false |\n| partner       | パートナー | コンテンツ参照 - パートナー | false |\n| related_blogs | 関連記事   | 複数コンテンツ参照 - ブログ | true  |\n\n### 著者\n\nendpoint: authors  \ntype: リスト形式\n\n| フィールド ID | 表示名   | 種類               | 必須 |\n| ------------- | -------- | ------------------ | ---- |\n| name          | 名前     | テキストフィールド | true |\n| text          | 自己紹介 | テキストエリア     | true |\n| image         | 画像     | 画像               | true |\n\n### カテゴリー\n\nendpoint: categories  \ntype: リスト形式\n\n| フィールド ID | 表示名 | 種類               | 必須 |\n| ------------- | ------ | ------------------ | ---- |\n| name          | 名前   | テキストフィールド | true |\n\n### パートナー\n\nendpoint: partners  \ntype: リスト形式\n\n| フィールド ID | 表示名   | 種類               | 必須 |\n| ------------- | -------- | ------------------ | ---- |\n| company       | 会社名   | テキストフィールド | true |\n| url           | 会社 URL | テキストフィールド | true |\n| description   | 説明文   | テキストエリア     | true |\n| logo          | ロゴ     | 画像               | true |\n\n### 人気の記事\n\nendpoint: popular-articles  \ntype: オブジェクト形式\n\n| フィールド ID | 表示名     | 種類                        | 必須 |\n| ------------- | ---------- | --------------------------- | ---- |\n| articles      | 人気の記事 | 複数コンテンツ参照 - ブログ | true |\n\n### バナー\n\nendpoint: banner  \ntype: オブジェクト形式\n\n| フィールド ID | 表示名       | 種類               | 必須 |\n| ------------- | ------------ | ------------------ | ---- |\n| image         | 画像         | 画像               | true |\n| url           | リンク先 URL | テキストフィールド | true |\n| alt           | 代替テキスト | テキストフィールド | true |\n\n## 環境変数\n\nプロジェクトルートに`.env`ファイルを作成し、以下の項目を設定してください。\n\n- NEXT_PUBLIC_API_KEY（microCMS の API キー）\n- NEXT_PUBLIC_SERVICE_ID（microCMS のサービス ID）\n- NEXT_PUBLIC_GOOGLE_ANALYTICS_ID（Google Analytics の ID）\n- NEXT_PUBLIC_SITE_URL\n- NEXT_PUBLIC_BASE_PATH（BasePath が'/'なら空白で大丈夫です）\n\n例:\n\n```env\nAPI_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\nSERVICE_ID=your-service-id\nNEXT_PUBLIC_GOOGLE_ANALYTICS_ID=G-xxxxxxxxxx\nNEXT_PUBLIC_SITE_URL=https://blog.microcms.io\nNEXT_PUBLIC_BASE_PATH=/test(or NEXT_PUBLIC_BASE_PATH=)\n```\n\n## 開発方法\n\n```bash\n# パッケージをインストール\n$ npm install\n\n# 開発サーバーを起動（localhost:3000）\n$ npm run dev\n\n# アプリケーションを生成\n$ npm run build\n\n# 生成したアプリケーションを起動\n$ npm start\n```\n\n## ライセンス\n\nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdc7290%2Fnextjs-microcms-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdc7290%2Fnextjs-microcms-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdc7290%2Fnextjs-microcms-blog/lists"}